Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: ash/common/wm_shell.cc

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reflow comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/wm_shell.cc
diff --git a/ash/common/wm_shell.cc b/ash/common/wm_shell.cc
index 5ad467936d6084b6acf71476fb8afad4a51c1659..33f55e4ff4acf4ab97a4b0443701bc1252e03d18 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -167,7 +167,7 @@ bool WmShell::IsSystemModalWindowOpen() {
void WmShell::ShowAppList() {
// Show the app list on the default display for new windows.
int64_t display_id =
- GetRootWindowForNewWindows()->GetDisplayNearestWindow().id();
+ root_window_for_new_windows_->GetDisplayNearestWindow().id();
delegate_->GetAppListPresenter()->Show(display_id);
}
@@ -178,7 +178,7 @@ void WmShell::DismissAppList() {
void WmShell::ToggleAppList() {
// Show the app list on the default display for new windows.
int64_t display_id =
- GetRootWindowForNewWindows()->GetDisplayNearestWindow().id();
+ root_window_for_new_windows_->GetDisplayNearestWindow().id();
delegate_->GetAppListPresenter()->ToggleAppList(display_id);
}

Powered by Google App Engine
This is Rietveld 408576698