OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profiles/profile_manager.h" | 5 #include "chrome/browser/profiles/profile_manager.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1102 // Start the deferred task runners once the profile is loaded. | 1102 // Start the deferred task runners once the profile is loaded. |
1103 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> | 1103 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> |
1104 StartDeferredTaskRunners(); | 1104 StartDeferredTaskRunners(); |
1105 | 1105 |
1106 // Activate data reduction proxy. This creates a request context and makes a | 1106 // Activate data reduction proxy. This creates a request context and makes a |
1107 // URL request to check if the data reduction proxy server is reachable. | 1107 // URL request to check if the data reduction proxy server is reachable. |
1108 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> | 1108 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> |
1109 MaybeActivateDataReductionProxy(true); | 1109 MaybeActivateDataReductionProxy(true); |
1110 | 1110 |
1111 GaiaCookieManagerServiceFactory::GetForProfile(profile)->Init(); | 1111 GaiaCookieManagerServiceFactory::GetForProfile(profile)->Init(); |
1112 // Accounts need to be partially seeded on Android. | |
anthonyvd
2015/10/01 14:33:20
Can you just add a little more to this comment (fo
| |
1113 #if !defined(OS_ANDROID) | |
1112 AccountFetcherServiceFactory::GetForProfile(profile)->EnableNetworkFetches(); | 1114 AccountFetcherServiceFactory::GetForProfile(profile)->EnableNetworkFetches(); |
1115 #endif | |
1113 AccountReconcilorFactory::GetForProfile(profile); | 1116 AccountReconcilorFactory::GetForProfile(profile); |
1114 } | 1117 } |
1115 | 1118 |
1116 void ProfileManager::DoFinalInitLogging(Profile* profile) { | 1119 void ProfileManager::DoFinalInitLogging(Profile* profile) { |
1117 TRACE_EVENT0("browser", "ProfileManager::DoFinalInitLogging"); | 1120 TRACE_EVENT0("browser", "ProfileManager::DoFinalInitLogging"); |
1118 // Count number of extensions in this profile. | 1121 // Count number of extensions in this profile. |
1119 int enabled_app_count = -1; | 1122 int enabled_app_count = -1; |
1120 #if defined(ENABLE_EXTENSIONS) | 1123 #if defined(ENABLE_EXTENSIONS) |
1121 enabled_app_count = GetEnabledAppCount(profile); | 1124 enabled_app_count = GetEnabledAppCount(profile); |
1122 #endif | 1125 #endif |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1487 } | 1490 } |
1488 | 1491 |
1489 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); | 1492 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); |
1490 if (!original_callback.is_null()) | 1493 if (!original_callback.is_null()) |
1491 original_callback.Run(loaded_profile, status); | 1494 original_callback.Run(loaded_profile, status); |
1492 } | 1495 } |
1493 | 1496 |
1494 ProfileManagerWithoutInit::ProfileManagerWithoutInit( | 1497 ProfileManagerWithoutInit::ProfileManagerWithoutInit( |
1495 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { | 1498 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { |
1496 } | 1499 } |
OLD | NEW |