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

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

Issue 14522013: Separate cert loading code from CertLibrary and move to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Add comments / address nits Created 7 years, 8 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/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 1f395f1e5193121d993089db58f6d57638594959..869525f20858588e7f0d6e744f044d1a1c04d87b 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -33,6 +33,7 @@
#include "chrome/browser/chromeos/audio/audio_handler.h"
#include "chrome/browser/chromeos/boot_times_loader.h"
#include "chrome/browser/chromeos/contacts/contact_manager.h"
+#include "chrome/browser/chromeos/cros/cert_library.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/browser/chromeos/dbus/cros_dbus_service.h"
#include "chrome/browser/chromeos/display/display_configuration_observer.h"
@@ -104,6 +105,7 @@
#include "chromeos/ime/input_method_manager.h"
#include "chromeos/ime/xkeyboard.h"
#include "chromeos/login/login_state.h"
+#include "chromeos/network/cert_loader.h"
#include "chromeos/network/geolocation_handler.h"
#include "chromeos/network/managed_network_configuration_handler.h"
#include "chromeos/network/network_change_notifier_chromeos.h"
@@ -269,7 +271,7 @@ void RunAutoLaunchKioskApp() {
// Login screen is skipped but 'login-prompt-visible' signal is still needed.
LOG(INFO) << "Kiosk app auto launch >> login-prompt-visible";
- chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->
+ DBusThreadManager::Get()->GetSessionManagerClient()->
EmitLoginPromptVisible();
}
@@ -302,6 +304,9 @@ class DBusServices {
DBusThreadManager::Initialize();
CrosDBusService::Initialize();
+ LoginState::Initialize();
+ CertLoader::Initialize();
+ CertLibrary::Initialize();
CryptohomeLibrary::Initialize();
// This function and SystemKeyEventListener use InputMethodManager.
@@ -313,16 +318,14 @@ class DBusServices {
disks::DiskMountManager::Initialize();
cryptohome::AsyncMethodCaller::Initialize();
- chromeos::LoginState::Initialize();
-
// Always initialize these handlers which should not conflict with
// NetworkLibrary.
- chromeos::network_event_log::Initialize();
- chromeos::GeolocationHandler::Initialize();
- chromeos::NetworkStateHandler::Initialize();
+ network_event_log::Initialize();
+ GeolocationHandler::Initialize();
+ NetworkStateHandler::Initialize();
- chromeos::NetworkConfigurationHandler::Initialize();
- chromeos::ManagedNetworkConfigurationHandler::Initialize();
+ NetworkConfigurationHandler::Initialize();
+ ManagedNetworkConfigurationHandler::Initialize();
// Initialize the network change notifier for Chrome OS. The network
// change notifier starts to monitor changes from the power manager and
@@ -351,11 +354,11 @@ class DBusServices {
DeviceSettingsService::Get()->SetSessionManager(
DBusThreadManager::Get()->GetSessionManagerClient(),
OwnerKeyUtil::Create());
- chromeos::ConnectivityStateHelper::Initialize();
+ ConnectivityStateHelper::Initialize();
}
~DBusServices() {
- chromeos::ConnectivityStateHelper::Shutdown();
+ ConnectivityStateHelper::Shutdown();
// CrosLibrary is shut down before DBusThreadManager even though it
// is initialized first becuase some of its libraries depend on DBus
// clients.
@@ -364,19 +367,20 @@ class DBusServices {
if (cros_initialized_ && CrosLibrary::Get())
CrosLibrary::Shutdown();
- chromeos::ManagedNetworkConfigurationHandler::Shutdown();
- chromeos::NetworkConfigurationHandler::Shutdown();
+ ManagedNetworkConfigurationHandler::Shutdown();
+ NetworkConfigurationHandler::Shutdown();
- chromeos::NetworkStateHandler::Shutdown();
- chromeos::GeolocationHandler::Shutdown();
- chromeos::network_event_log::Shutdown();
+ NetworkStateHandler::Shutdown();
+ GeolocationHandler::Shutdown();
+ network_event_log::Shutdown();
- chromeos::LoginState::Shutdown();
+ LoginState::Shutdown();
cryptohome::AsyncMethodCaller::Shutdown();
disks::DiskMountManager::Shutdown();
input_method::Shutdown();
CryptohomeLibrary::Shutdown();
+ CertLibrary::Shutdown();
pneubeck (no reviews) 2013/05/02 14:58:35 Shutdown of CertLoader? Can you use the reverse o
stevenjb 2013/05/03 01:00:31 Done.
CrosDBusService::Shutdown();
// NOTE: This must only be called if Initialize() was called.
DBusThreadManager::Shutdown();
@@ -508,7 +512,7 @@ void ChromeBrowserMainPartsChromeos::PreMainMessageLoopRun() {
SystemKeyEventListener::Initialize();
}
- chromeos::DeviceOAuth2TokenServiceFactory::Initialize();
+ DeviceOAuth2TokenServiceFactory::Initialize();
ChromeBrowserMainPartsLinux::PreMainMessageLoopRun();
}
@@ -593,7 +597,7 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
// Initialize magnification manager before ash tray is created. And this must
// be placed after UserManager::SessionStarted();
- chromeos::MagnificationManager::Initialize();
+ MagnificationManager::Initialize();
// Add observers for WallpaperManager. This depends on PowerManagerClient,
// TimezoneSettings and CrosSettings.
@@ -756,7 +760,7 @@ void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
LoginUtils::Get()->StopBackgroundFetchers();
// Stops all in-flight OAuth2 token fetchers before the IO thread stops.
- chromeos::DeviceOAuth2TokenServiceFactory::Shutdown();
+ DeviceOAuth2TokenServiceFactory::Shutdown();
// Shutdown the upgrade detector for Chrome OS. The upgrade detector
// stops monitoring changes from the update engine.
@@ -793,7 +797,7 @@ void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
// Singletons are finally destroyed in AtExitManager.
XInputHierarchyChangedEventListener::GetInstance()->Stop();
- // chromeos::SystemKeyEventListener::Shutdown() is always safe to call,
+ // SystemKeyEventListener::Shutdown() is always safe to call,
// even if Initialize() wasn't called.
SystemKeyEventListener::Shutdown();
imageburner::BurnManager::Shutdown();
@@ -823,7 +827,7 @@ void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
// Delete ContactManager while |g_browser_process| is still alive.
contact_manager_.reset();
- chromeos::MagnificationManager::Shutdown();
+ MagnificationManager::Shutdown();
// Let the UserManager and WallpaperManager unregister itself as an observer
// of the CrosSettings singleton before it is destroyed.
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cert_library.h » ('j') | chrome/browser/chromeos/cros/cert_library.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698