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

Unified Diff: ash/shell.cc

Issue 10905288: Switch primary display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/system/tray_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index ed0d8fa62449d6a9725872ca044110ba3167502b..d6ee8482b5f017f217acf25876079bbf840afa06 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -195,8 +195,6 @@ Shell::Shell(ShellDelegate* delegate)
output_configurator_->AddObserver(output_configurator_animation_.get());
base::MessagePumpAuraX11::Current()->AddDispatcherForRootWindow(
output_configurator());
- static_cast<internal::MultiDisplayManager*>(
- aura::Env::GetInstance()->display_manager())->InitInternalDisplayInfo();
#endif // defined(OS_CHROMEOS)
}
@@ -450,6 +448,16 @@ void Shell::Init() {
InitRootWindowController(root_window_controller);
+ // This controller needs to be set before SetupManagedWindowMode.
+ desktop_background_controller_.reset(new DesktopBackgroundController());
+ if (delegate_.get())
+ user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate());
+ if (!user_wallpaper_delegate_.get())
+ user_wallpaper_delegate_.reset(new DummyUserWallpaperDelegate());
+
+ // Launcher must be created after secondary displays are initialized.
+ display_controller_->InitSecondaryDisplays();
+
// StatusAreaWidget uses Shell's CapsLockDelegate.
if (delegate_.get())
caps_lock_delegate_.reset(delegate_->CreateCapsLockDelegate());
@@ -466,13 +474,6 @@ void Shell::Init() {
focus_cycler_.reset(new internal::FocusCycler());
focus_cycler_->AddWidget(status_area_widget_);
- // This controller needs to be set before SetupManagedWindowMode.
- desktop_background_controller_.reset(new DesktopBackgroundController());
- if (delegate_.get())
- user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate());
- if (!user_wallpaper_delegate_.get())
- user_wallpaper_delegate_.reset(new DummyUserWallpaperDelegate());
-
InitLayoutManagersForPrimaryDisplay(root_window_controller);
if (!command_line->HasSwitch(switches::kAuraNoShadows)) {
@@ -480,9 +481,6 @@ void Shell::Init() {
shadow_controller_.reset(new internal::ShadowController());
}
- // Launcher must be created after secondary displays are initialized.
- display_controller_->InitSecondaryDisplays();
-
if (!delegate_.get() || delegate_->IsUserLoggedIn())
CreateLauncher();
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/system/tray_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698