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, |