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

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

Issue 389913002: Moving IME manifests to chrome resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed duplicated XKB extension loading. Created 6 years, 5 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 a6af4d224996248fe79719f001985ecb1e55f9c2..d6eb0c92541b438a5f00dc802e9fa92a0aa173c8 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -163,12 +163,6 @@ class DBusServices {
TPMTokenLoader::Initialize();
CertLoader::Initialize();
- // This function and SystemKeyEventListener use InputMethodManager.
- chromeos::input_method::Initialize(
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::UI),
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::FILE));
disks::DiskMountManager::Initialize();
cryptohome::AsyncMethodCaller::Initialize();
cryptohome::HomedirMethods::Initialize();
@@ -185,13 +179,6 @@ class DBusServices {
// detector starts to monitor changes from the update engine.
UpgradeDetectorChromeos::GetInstance()->Init();
- if (base::SysInfo::IsRunningOnChromeOS()) {
- // Disable Num Lock on X start up for http://crosbug.com/29169.
- input_method::InputMethodManager::Get()
- ->GetImeKeyboard()
- ->DisableNumLock();
- }
-
// Initialize the device settings service so that we'll take actions per
// signals sent from the session manager. This needs to happen before
// g_browser_process initializes BrowserPolicyConnector.
@@ -207,7 +194,6 @@ class DBusServices {
cryptohome::AsyncMethodCaller::Shutdown();
disks::DiskMountManager::Shutdown();
- input_method::Shutdown();
SystemSaltGetter::Shutdown();
LoginState::Shutdown();
@@ -367,6 +353,9 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
// notification it needs to track the logged in user.
g_browser_process->profile_manager();
+ // AccessibilityManager and SystemKeyEventListener use InputMethodManager.
+ input_method::Initialize();
+
// ProfileHelper has to be initialized after UserManager instance is created.
ProfileHelper::Get()->Initialize();
@@ -717,6 +706,8 @@ void ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun() {
// Ash needs to be closed before UserManager is destroyed.
ChromeBrowserMainPartsLinux::PostMainMessageLoopRun();
+ input_method::Shutdown();
+
// Stops all in-flight OAuth2 token fetchers before the IO thread stops.
DeviceOAuth2TokenServiceFactory::Shutdown();

Powered by Google App Engine
This is Rietveld 408576698