summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/input_method/input_method_persistence.h
diff options
context:
space:
mode:
authoralemate <alemate@chromium.org>2015-05-12 14:36:07 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-12 21:36:37 +0000
commitf06730290bf11bcbb8d225d5f781e7989c2ddc27 (patch)
tree6cdb46d34b73e730ff414cb8df818fb31fc69570 /chrome/browser/chromeos/input_method/input_method_persistence.h
parent121cbb5f7fce9719ab6152cb2e059575df8139d6 (diff)
downloadchromium_src-f06730290bf11bcbb8d225d5f781e7989c2ddc27.zip
chromium_src-f06730290bf11bcbb8d225d5f781e7989c2ddc27.tar.gz
chromium_src-f06730290bf11bcbb8d225d5f781e7989c2ddc27.tar.bz2
ChromeOS: switch UI language before apps are loaded.
Chrome Apps cannot switch UI language, so we need to initialize apps after app_locale is set correctly. This CL splits ProfileImpl::OnPrefsLoaded into two steps (the former and OnLocaleReady), adding intermediate call to switch to correct locale. Also Profile is added as parameter to InputMethodChanged() observers. chromeos::locale_util::SwitchLanguage() now updates default input methods for user profile, not currently active set. TBR=dmazzoni@chromium.org BUG=469268 TEST=manual Review URL: https://codereview.chromium.org/1055863002 Cr-Commit-Position: refs/heads/master@{#329496}
Diffstat (limited to 'chrome/browser/chromeos/input_method/input_method_persistence.h')
-rw-r--r--chrome/browser/chromeos/input_method/input_method_persistence.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/input_method/input_method_persistence.h b/chrome/browser/chromeos/input_method/input_method_persistence.h
index fc7c802..73af6d0 100644
--- a/chrome/browser/chromeos/input_method/input_method_persistence.h
+++ b/chrome/browser/chromeos/input_method/input_method_persistence.h
@@ -33,6 +33,7 @@ class InputMethodPersistence : public InputMethodManager::Observer {
// InputMethodManager::Observer overrides.
void InputMethodChanged(InputMethodManager* manager,
+ Profile* profile,
bool show_message) override;
private: