OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ios/chrome/browser/browser_state/chrome_browser_state_manager_impl.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "components/browser_sync/browser/profile_sync_service.h" | 15 #include "components/browser_sync/profile_sync_service.h" |
16 #include "components/invalidation/impl/profile_invalidation_provider.h" | 16 #include "components/invalidation/impl/profile_invalidation_provider.h" |
17 #include "components/password_manager/core/browser/password_store.h" | 17 #include "components/password_manager/core/browser/password_store.h" |
18 #include "components/password_manager/sync/browser/password_manager_setting_migr
ator_service.h" | 18 #include "components/password_manager/sync/browser/password_manager_setting_migr
ator_service.h" |
19 #include "components/prefs/pref_service.h" | 19 #include "components/prefs/pref_service.h" |
20 #include "components/signin/core/browser/account_fetcher_service.h" | 20 #include "components/signin/core/browser/account_fetcher_service.h" |
21 #include "components/signin/core/browser/account_tracker_service.h" | 21 #include "components/signin/core/browser/account_tracker_service.h" |
22 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 22 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
23 #include "components/signin/core/browser/signin_manager.h" | 23 #include "components/signin/core/browser/signin_manager.h" |
24 #include "ios/chrome/browser/application_context.h" | 24 #include "ios/chrome/browser/application_context.h" |
25 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" | 25 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 cache->GetIndexOfBrowserStateWithPath(browser_state->GetStatePath()); | 245 cache->GetIndexOfBrowserStateWithPath(browser_state->GetStatePath()); |
246 if (browser_state_index != std::string::npos) { | 246 if (browser_state_index != std::string::npos) { |
247 // The BrowserStateInfoCache's info must match the Signin Manager. | 247 // The BrowserStateInfoCache's info must match the Signin Manager. |
248 cache->SetAuthInfoOfBrowserStateAtIndex(browser_state_index, | 248 cache->SetAuthInfoOfBrowserStateAtIndex(browser_state_index, |
249 account_info.gaia, username); | 249 account_info.gaia, username); |
250 return; | 250 return; |
251 } | 251 } |
252 cache->AddBrowserState(browser_state->GetStatePath(), account_info.gaia, | 252 cache->AddBrowserState(browser_state->GetStatePath(), account_info.gaia, |
253 username); | 253 username); |
254 } | 254 } |
OLD | NEW |