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

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

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 2 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/primary_display_switch_observer.cc
diff --git a/chrome/browser/chromeos/display/primary_display_switch_observer.cc b/chrome/browser/chromeos/display/primary_display_switch_observer.cc
index bb9e73e8da3625c3cb026b5adb1086de0864a269..812a1e23ff3934128cca90563c9ecb66ae2a14ab 100644
--- a/chrome/browser/chromeos/display/primary_display_switch_observer.cc
+++ b/chrome/browser/chromeos/display/primary_display_switch_observer.cc
@@ -19,7 +19,8 @@ void PrimaryDisplaySwitchObserver::OnRootWindowMoved(
const aura::RootWindow* root_window, const gfx::Point& new_origin) {
PrefService* pref_service = ProfileManager::GetDefaultProfile()->GetPrefs();
pref_service->SetInt64(
- prefs::kPrimaryDisplayID, gfx::Screen::GetPrimaryDisplay().id());
+ prefs::kPrimaryDisplayID,
+ ash::Shell::GetAshScreen()->GetPrimaryDisplay().id());
}
PrimaryDisplaySwitchObserver::PrimaryDisplaySwitchObserver()

Powered by Google App Engine
This is Rietveld 408576698