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

Unified Diff: ash/display/multi_display_manager.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: new android code 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: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index ef20b0e6302372e940877892eaa3e4adfd92e34a..2b407aef37e2a880266ce5cc64b84bc582e55b4f 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -194,7 +194,7 @@ void MultiDisplayManager::OnNativeDisplaysChanged(
std::vector<size_t> added_display_indices;
gfx::Display current_primary;
if (Shell::HasInstance())
- current_primary = gfx::Screen::GetPrimaryDisplay();
+ current_primary = Shell::GetAshScreen()->GetPrimaryDisplay();
for (DisplayList::iterator curr_iter = displays_.begin(),
new_iter = new_displays.begin();

Powered by Google App Engine
This is Rietveld 408576698