| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |