Index: chrome/browser/chromeos/login/session/user_session_manager.cc |
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc |
index 9ce8356a3611a26b4135498989a709168a4b4358..9c4ea940840b5d58f22b6135619dcb35f91311c6 100644 |
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc |
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc |
@@ -172,9 +172,12 @@ void InitLocaleAndInputMethodsForNewUser( |
} |
// Save the preferred languages in the user's preferences. |
- StringPrefMember language_preferred_languages; |
- language_preferred_languages.Init(prefs::kLanguagePreferredLanguages, prefs); |
- language_preferred_languages.SetValue(JoinString(language_codes, ',')); |
+ prefs->SetString(prefs::kLanguagePreferredLanguages, |
+ JoinString(language_codes, ',')); |
+ |
+ // Indicate that we need to merge the syncable input methods when we sync, |
+ // since we have not applied the synced prefs before. |
+ prefs->SetBoolean(prefs::kLanguageShouldMergeInputMethods, true); |
} |
#if defined(ENABLE_RLZ) |
@@ -1484,4 +1487,8 @@ void UserSessionManager::RunCallbackOnLocaleLoaded( |
callback.Run(); |
} |
+void UserSessionManager::RemoveProfileForTesting(Profile* profile) { |
+ default_ime_states_.erase(profile); |
+} |
+ |
} // namespace chromeos |