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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 11968044: Fix login visual hitch on chromebook (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 | « no previous file | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index 0a00b974620c8439eefdfb17363a5b9739af4b52..b3f5170a03e11191e18b3fddb1d31701c0870ee9 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -279,9 +279,6 @@ class DBusServices {
DeviceSettingsService::Get()->Initialize(
DBusThreadManager::Get()->GetSessionManagerClient(),
OwnerKeyUtil::Create());
-
- // Add observers for WallpaperManager. This depends on PowerManagerClient().
- WallpaperManager::Get()->AddObservers();
}
// TODO(stevenjb): Move this into DBusServices() once the switch is no
@@ -539,6 +536,10 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
// be placed after UserManager::SessionStarted();
chromeos::MagnificationManager::Initialize();
+ // Add observers for WallpaperManager. This depends on PowerManagerClient,
+ // TimezoneSettings and CrosSettings.
+ WallpaperManager::Get()->AddObservers();
+
#if defined(USE_LINUX_BREAKPAD)
cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL,
base::Bind(&ChromeOSVersionCallback),
@@ -728,9 +729,10 @@ void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
chromeos::MagnificationManager::Shutdown();
- // Let the UserManager unregister itself as an observer of the CrosSettings
- // singleton before it is destroyed.
+ // Let the UserManager and WallpaperManager unregister itself as an observer
+ // of the CrosSettings singleton before it is destroyed.
UserManager::Get()->Shutdown();
+ WallpaperManager::Get()->Shutdown();
ChromeBrowserMainPartsLinux::PostMainMessageLoopRun();
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698