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

Unified Diff: trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc

Issue 24365012: Revert 225054 "linux_aura: Implement most of DesktopScreenX11." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
===================================================================
--- trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc (revision 225060)
+++ trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc (working copy)
@@ -52,7 +52,12 @@
#if !defined(OS_CHROMEOS)
#if defined(USE_ASH)
active_desktop_monitor_.reset(new ActiveDesktopMonitor(GetInitialDesktop()));
+ if (!chrome::ShouldOpenAshOnStartup())
#endif
+ {
+ gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE,
+ views::CreateDesktopScreen());
+ }
#endif
#if !defined(USE_ASH) && defined(OS_LINUX) && defined(USE_X11)
@@ -61,18 +66,6 @@
#endif
}
-void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopStart() {
-#if !defined(OS_CHROMEOS)
-#if defined(USE_ASH)
- if (!chrome::ShouldOpenAshOnStartup())
-#endif
- {
- gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE,
- views::CreateDesktopScreen());
- }
-#endif
-}
-
void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() {
active_desktop_monitor_.reset();
« no previous file with comments | « trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h ('k') | trunk/src/chromeos/display/output_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698