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

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: fix some new gfx::Screen additions 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 352edb389ac8babe74bf0b5b541af596cd5a1959..a3295fe1811c45f31ca5caeb8b02347a1f32f6da 100644
--- a/chrome/browser/chromeos/display/primary_display_switch_observer.cc
+++ b/chrome/browser/chromeos/display/primary_display_switch_observer.cc
@@ -16,8 +16,9 @@ namespace chromeos {
void PrimaryDisplaySwitchObserver::OnRootWindowMoved(
const aura::RootWindow* root_window, const gfx::Point& new_origin) {
- StorePrimaryDisplayIDPref(ProfileManager::GetDefaultProfile()->GetPrefs(),
- gfx::Screen::GetPrimaryDisplay().id());
+ StorePrimaryDisplayIDPref(
+ ProfileManager::GetDefaultProfile()->GetPrefs(),
+ ash::Shell::GetAshScreen()->GetPrimaryDisplay().id());
}
PrimaryDisplaySwitchObserver::PrimaryDisplaySwitchObserver()

Powered by Google App Engine
This is Rietveld 408576698