forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "cbui crostini: refactor away CrostiniAppRestartView"
This reverts commit b6deb46. Reason for revert: Deterministically breaks linux-chromeos-dbg, e.g. https://ci.chromium.org/p/chromium/builders/ci/linux-chromeos-dbg/20956 Original change's description: > cbui crostini: refactor away CrostiniAppRestartView > > This change removes CrostiniAppRestartView, replacing it with: > * Construction and configuration of a bare View + DialogDelegate pair > * A pair of public functions that create and show this dialog > > This change also adds some unit test coverage for this dialog to > ensure that I didn't break it when doing this refactor. > > Bug: 1075649 > Change-Id: I7de0e2386de14aa6aec8917c630f64a69df26832 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490345 > Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> > Reviewed-by: Joel Hockey <joelhockey@chromium.org> > Cr-Commit-Position: refs/heads/master@{#819545} TBR=ellyjones@chromium.org,joelhockey@chromium.org Change-Id: I230664fa24b78125632310bf05edd6a3d219f18b No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1075649 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490971 Reviewed-by: Nic Hollingum <hollingum@google.com> Auto-Submit: Nic Hollingum <hollingum@google.com> Commit-Queue: Nic Hollingum <hollingum@google.com> Cr-Commit-Position: refs/heads/master@{#819687}
- Loading branch information
Nic Hollingum
authored and
Commit Bot
committed
Oct 22, 2020
1 parent
dfd6d85
commit fc9e551
Showing
7 changed files
with
67 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
chrome/browser/ui/views/crostini/crostini_app_restart_dialog.h
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
chrome/browser/ui/views/crostini/crostini_app_restart_dialog_unittest.cc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
chrome/browser/ui/views/crostini/crostini_app_restart_view.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CHROME_BROWSER_UI_VIEWS_CROSTINI_CROSTINI_APP_RESTART_VIEW_H_ | ||
#define CHROME_BROWSER_UI_VIEWS_CROSTINI_CROSTINI_APP_RESTART_VIEW_H_ | ||
|
||
#include "ash/public/cpp/shelf_types.h" | ||
#include "ui/views/window/dialog_delegate.h" | ||
|
||
// Provide user a choice to restart the app after display density change. | ||
class CrostiniAppRestartView : public views::DialogDelegateView { | ||
public: | ||
// Create and show a new dialog. | ||
static void Show(int64_t display_id); | ||
|
||
// views::DialogDelegateView: | ||
bool ShouldShowCloseButton() const override; | ||
gfx::Size CalculatePreferredSize() const override; | ||
ui::ModalType GetModalType() const override; | ||
|
||
private: | ||
CrostiniAppRestartView(); | ||
~CrostiniAppRestartView() override = default; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(CrostiniAppRestartView); | ||
}; | ||
|
||
#endif // CHROME_BROWSER_UI_VIEWS_CROSTINI_CROSTINI_APP_RESTART_VIEW_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters