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

Unified Diff: chrome/browser/chromeos/display/display_configuration_observer.cc

Issue 2118593002: mash: Migrate ShellDelegate ownership and access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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: chrome/browser/chromeos/display/display_configuration_observer.cc
diff --git a/chrome/browser/chromeos/display/display_configuration_observer.cc b/chrome/browser/chromeos/display/display_configuration_observer.cc
index 85b9932a9caa942378680c2a43b90c3b3fadc6d0..a3674c1074d1dd80f12242b390aa1939ee66e4b0 100644
--- a/chrome/browser/chromeos/display/display_configuration_observer.cc
+++ b/chrome/browser/chromeos/display/display_configuration_observer.cc
@@ -4,9 +4,10 @@
#include "chrome/browser/chromeos/display/display_configuration_observer.h"
+#include "ash/common/shell_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
-#include "ash/shell_delegate.h"
#include "chrome/browser/chromeos/display/display_preferences.h"
namespace chromeos {
@@ -21,7 +22,7 @@ DisplayConfigurationObserver::~DisplayConfigurationObserver() {
void DisplayConfigurationObserver::OnDisplaysInitialized() {
// Update the display pref with the initial power state.
- if (ash::Shell::GetInstance()->delegate()->IsFirstRunAfterBoot())
+ if (ash::WmShell::Get()->delegate()->IsFirstRunAfterBoot())
StoreDisplayPrefs();
}

Powered by Google App Engine
This is Rietveld 408576698