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

Unified Diff: chrome/browser/profiles/profile_impl.h

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/profiles/profile_impl.h
diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h
index 14599cfec92cb79cb4e2af26c85ca935169651d6..e86f2fe8fc5b68398f750bf8b545e683ad9d0b20 100644
--- a/chrome/browser/profiles/profile_impl.h
+++ b/chrome/browser/profiles/profile_impl.h
@@ -165,9 +165,15 @@ class ProfileImpl : public Profile {
// Does final initialization. Should be called after prefs were loaded.
void DoFinalInit();
- // Does final prefs initialization and calls Init().
+ // Check |success| and proceed to SwitchUILanguage.
void OnPrefsLoaded(bool success);
+ // Switches UI language if possible.
+ void SwitchUILanguage();
+
+ // Does final prefs initialization and calls Init().
+ void OnLanguageSwitched();
+
#if defined(ENABLE_SESSION_SERVICE)
void StopCreateSessionServiceTimer();

Powered by Google App Engine
This is Rietveld 408576698