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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.h

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed CREATE_MODE_SYNCHRONOUS mode. Created 5 years, 7 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/login/session/user_session_manager.h
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.h b/chrome/browser/chromeos/login/session/user_session_manager.h
index c8eec25bf155e2321ce699f23ce60c935e58a008..b243e5a9b94571c6c3199e321be11a6fa38a6221 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.h
+++ b/chrome/browser/chromeos/login/session/user_session_manager.h
@@ -191,6 +191,12 @@ class UserSessionManager
const user_manager::User* user,
const locale_util::SwitchLanguageCallback& callback) const;
+ // Switch to the locale that |profile| wishes to use and invoke |callback|.
+ // If |synchronous| is true, wait for language switched.
+ void RespectLocalePreferenceWrapper(Profile* profile,
+ const base::Closure& callback,
+ bool synchronous);
+
// Restarts Chrome if needed. This happens when user session has custom
// flags/switches enabled. Another case when owner has setup custom flags,
// they are applied on login screen as well but not to user session.
@@ -351,10 +357,6 @@ class UserSessionManager
LoginDisplayHost* login_host,
bool locale_pref_checked);
- // Switch to the locale that |profile| wishes to use and invoke |callback|.
- void RespectLocalePreferenceWrapper(Profile* profile,
- const base::Closure& callback);
-
static void RunCallbackOnLocaleLoaded(
const base::Closure& callback,
InputEventsBlocker* input_events_blocker,

Powered by Google App Engine
This is Rietveld 408576698