| 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 9874aef1e3c113ca2194abb27bb3bff78919c045..4e15fd3e019441ed95ee1cfaf72d5631035a15a3 100644
|
| --- a/chrome/browser/chromeos/login/session/user_session_manager.h
|
| +++ b/chrome/browser/chromeos/login/session/user_session_manager.h
|
| @@ -191,6 +191,10 @@ 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|.
|
| + void RespectLocalePreferenceWrapper(Profile* profile,
|
| + const base::Closure& callback);
|
| +
|
| // 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.
|
| @@ -232,6 +236,9 @@ class UserSessionManager
|
|
|
| bool has_auth_cookies() const { return has_auth_cookies_; }
|
|
|
| + // This is called from ProfileImpl() before profile is created.
|
| + void OnNewProfileCreating(Profile* profile);
|
| +
|
| private:
|
| friend class test::UserSessionManagerTestApi;
|
| friend struct DefaultSingletonTraits<UserSessionManager>;
|
| @@ -344,10 +351,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,
|
|
|