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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 5 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 void UserSessionManager::RemoveProfileForTesting(Profile* profile) { 1570 void UserSessionManager::RemoveProfileForTesting(Profile* profile) {
1571 default_ime_states_.erase(profile); 1571 default_ime_states_.erase(profile);
1572 } 1572 }
1573 1573
1574 void UserSessionManager::InjectStubUserContext( 1574 void UserSessionManager::InjectStubUserContext(
1575 const UserContext& user_context) { 1575 const UserContext& user_context) {
1576 injected_user_context_.reset(new UserContext(user_context)); 1576 injected_user_context_.reset(new UserContext(user_context));
1577 authenticator_ = NULL; 1577 authenticator_ = NULL;
1578 } 1578 }
1579 1579
1580 void UserSessionManager::OnNewProfileCreating(Profile* profile) {
1581 profile->SetOnPrefsLoadedHook(base::Bind(
1582 &UserSessionManager::RespectLocalePreferenceWrapper, AsWeakPtr()));
1583 }
1584
1580 } // namespace chromeos 1585 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698