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

Side by Side Diff: chrome/browser/profiles/profile_manager.cc

Issue 1075273002: Handle ListAccount fetches from within the GaiaCookieManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a test post rebase 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 (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 20 matching lines...) Expand all
31 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" 31 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
32 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 32 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
33 #include "chrome/browser/profiles/profile_destroyer.h" 33 #include "chrome/browser/profiles/profile_destroyer.h"
34 #include "chrome/browser/profiles/profile_info_cache.h" 34 #include "chrome/browser/profiles/profile_info_cache.h"
35 #include "chrome/browser/profiles/profile_metrics.h" 35 #include "chrome/browser/profiles/profile_metrics.h"
36 #include "chrome/browser/profiles/profiles_state.h" 36 #include "chrome/browser/profiles/profiles_state.h"
37 #include "chrome/browser/profiles/startup_task_runner_service.h" 37 #include "chrome/browser/profiles/startup_task_runner_service.h"
38 #include "chrome/browser/profiles/startup_task_runner_service_factory.h" 38 #include "chrome/browser/profiles/startup_task_runner_service_factory.h"
39 #include "chrome/browser/signin/account_reconcilor_factory.h" 39 #include "chrome/browser/signin/account_reconcilor_factory.h"
40 #include "chrome/browser/signin/account_tracker_service_factory.h" 40 #include "chrome/browser/signin/account_tracker_service_factory.h"
41 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h"
41 #include "chrome/browser/signin/signin_manager_factory.h" 42 #include "chrome/browser/signin/signin_manager_factory.h"
42 #include "chrome/browser/sync/profile_sync_service.h" 43 #include "chrome/browser/sync/profile_sync_service.h"
43 #include "chrome/browser/sync/profile_sync_service_factory.h" 44 #include "chrome/browser/sync/profile_sync_service_factory.h"
44 #include "chrome/browser/ui/browser.h" 45 #include "chrome/browser/ui/browser.h"
45 #include "chrome/browser/ui/browser_iterator.h" 46 #include "chrome/browser/ui/browser_iterator.h"
46 #include "chrome/browser/ui/sync/sync_promo_ui.h" 47 #include "chrome/browser/ui/sync/sync_promo_ui.h"
47 #include "chrome/common/chrome_constants.h" 48 #include "chrome/common/chrome_constants.h"
48 #include "chrome/common/chrome_paths_internal.h" 49 #include "chrome/common/chrome_paths_internal.h"
49 #include "chrome/common/chrome_switches.h" 50 #include "chrome/common/chrome_switches.h"
50 #include "chrome/common/logging_chrome.h" 51 #include "chrome/common/logging_chrome.h"
51 #include "chrome/common/pref_names.h" 52 #include "chrome/common/pref_names.h"
52 #include "chrome/common/url_constants.h" 53 #include "chrome/common/url_constants.h"
53 #include "chrome/grit/generated_resources.h" 54 #include "chrome/grit/generated_resources.h"
54 #include "components/bookmarks/browser/bookmark_model.h" 55 #include "components/bookmarks/browser/bookmark_model.h"
55 #include "components/content_settings/core/browser/host_content_settings_map.h" 56 #include "components/content_settings/core/browser/host_content_settings_map.h"
56 #include "components/password_manager/core/browser/password_store.h" 57 #include "components/password_manager/core/browser/password_store.h"
57 #include "components/signin/core/browser/account_tracker_service.h" 58 #include "components/signin/core/browser/account_tracker_service.h"
59 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
58 #include "components/signin/core/browser/signin_manager.h" 60 #include "components/signin/core/browser/signin_manager.h"
59 #include "components/signin/core/common/profile_management_switches.h" 61 #include "components/signin/core/common/profile_management_switches.h"
60 #include "content/public/browser/browser_thread.h" 62 #include "content/public/browser/browser_thread.h"
61 #include "content/public/browser/notification_service.h" 63 #include "content/public/browser/notification_service.h"
62 #include "content/public/browser/user_metrics.h" 64 #include "content/public/browser/user_metrics.h"
63 #include "net/http/http_transaction_factory.h" 65 #include "net/http/http_transaction_factory.h"
64 #include "net/url_request/url_request_context.h" 66 #include "net/url_request/url_request_context.h"
65 #include "net/url_request/url_request_context_getter.h" 67 #include "net/url_request/url_request_context_getter.h"
66 #include "net/url_request/url_request_job.h" 68 #include "net/url_request/url_request_job.h"
67 #include "ui/base/l10n/l10n_util.h" 69 #include "ui/base/l10n/l10n_util.h"
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 #endif 1043 #endif
1042 // Start the deferred task runners once the profile is loaded. 1044 // Start the deferred task runners once the profile is loaded.
1043 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 1045 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
1044 StartDeferredTaskRunners(); 1046 StartDeferredTaskRunners();
1045 1047
1046 // Activate data reduction proxy. This creates a request context and makes a 1048 // Activate data reduction proxy. This creates a request context and makes a
1047 // URL request to check if the data reduction proxy server is reachable. 1049 // URL request to check if the data reduction proxy server is reachable.
1048 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> 1050 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)->
1049 MaybeActivateDataReductionProxy(true); 1051 MaybeActivateDataReductionProxy(true);
1050 1052
1053 GaiaCookieManagerServiceFactory::GetForProfile(profile)->Init();
1051 AccountTrackerServiceFactory::GetForProfile(profile)->EnableNetworkFetches(); 1054 AccountTrackerServiceFactory::GetForProfile(profile)->EnableNetworkFetches();
1052 AccountReconcilorFactory::GetForProfile(profile); 1055 AccountReconcilorFactory::GetForProfile(profile);
1053 } 1056 }
1054 1057
1055 void ProfileManager::DoFinalInitLogging(Profile* profile) { 1058 void ProfileManager::DoFinalInitLogging(Profile* profile) {
1056 TRACE_EVENT0("browser", "ProfileManager::DoFinalInitLogging"); 1059 TRACE_EVENT0("browser", "ProfileManager::DoFinalInitLogging");
1057 // Count number of extensions in this profile. 1060 // Count number of extensions in this profile.
1058 int enabled_app_count = -1; 1061 int enabled_app_count = -1;
1059 #if defined(ENABLE_EXTENSIONS) 1062 #if defined(ENABLE_EXTENSIONS)
1060 enabled_app_count = GetEnabledAppCount(profile); 1063 enabled_app_count = GetEnabledAppCount(profile);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 } 1401 }
1399 1402
1400 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); 1403 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path);
1401 if (!original_callback.is_null()) 1404 if (!original_callback.is_null())
1402 original_callback.Run(loaded_profile, status); 1405 original_callback.Run(loaded_profile, status);
1403 } 1406 }
1404 1407
1405 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1408 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1406 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1409 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1407 } 1410 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | chrome/browser/signin/about_signin_internals_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698