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

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

Issue 425823002: Create a new AccountTrackerService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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 | Annotate | Revision Log
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 18 matching lines...) Expand all
29 #include "chrome/browser/prefs/incognito_mode_prefs.h" 29 #include "chrome/browser/prefs/incognito_mode_prefs.h"
30 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" 30 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
31 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 31 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
32 #include "chrome/browser/profiles/profile_destroyer.h" 32 #include "chrome/browser/profiles/profile_destroyer.h"
33 #include "chrome/browser/profiles/profile_info_cache.h" 33 #include "chrome/browser/profiles/profile_info_cache.h"
34 #include "chrome/browser/profiles/profile_metrics.h" 34 #include "chrome/browser/profiles/profile_metrics.h"
35 #include "chrome/browser/profiles/profiles_state.h" 35 #include "chrome/browser/profiles/profiles_state.h"
36 #include "chrome/browser/profiles/startup_task_runner_service.h" 36 #include "chrome/browser/profiles/startup_task_runner_service.h"
37 #include "chrome/browser/profiles/startup_task_runner_service_factory.h" 37 #include "chrome/browser/profiles/startup_task_runner_service_factory.h"
38 #include "chrome/browser/signin/account_reconcilor_factory.h" 38 #include "chrome/browser/signin/account_reconcilor_factory.h"
39 #include "chrome/browser/signin/account_tracker_service_factory.h"
39 #include "chrome/browser/sync/profile_sync_service.h" 40 #include "chrome/browser/sync/profile_sync_service.h"
40 #include "chrome/browser/sync/profile_sync_service_factory.h" 41 #include "chrome/browser/sync/profile_sync_service_factory.h"
41 #include "chrome/browser/ui/browser.h" 42 #include "chrome/browser/ui/browser.h"
42 #include "chrome/browser/ui/browser_iterator.h" 43 #include "chrome/browser/ui/browser_iterator.h"
43 #include "chrome/browser/ui/sync/sync_promo_ui.h" 44 #include "chrome/browser/ui/sync/sync_promo_ui.h"
44 #include "chrome/common/chrome_constants.h" 45 #include "chrome/common/chrome_constants.h"
45 #include "chrome/common/chrome_paths_internal.h" 46 #include "chrome/common/chrome_paths_internal.h"
46 #include "chrome/common/chrome_switches.h" 47 #include "chrome/common/chrome_switches.h"
47 #include "chrome/common/logging_chrome.h" 48 #include "chrome/common/logging_chrome.h"
48 #include "chrome/common/pref_names.h" 49 #include "chrome/common/pref_names.h"
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID) 1007 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID)
1007 // Initialization needs to happen after extension system initialization (for 1008 // Initialization needs to happen after extension system initialization (for
1008 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the 1009 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the
1009 // initializing the supervised flag if necessary). 1010 // initializing the supervised flag if necessary).
1010 SupervisedUserServiceFactory::GetForProfile(profile)->Init(); 1011 SupervisedUserServiceFactory::GetForProfile(profile)->Init();
1011 #endif 1012 #endif
1012 // Start the deferred task runners once the profile is loaded. 1013 // Start the deferred task runners once the profile is loaded.
1013 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 1014 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
1014 StartDeferredTaskRunners(); 1015 StartDeferredTaskRunners();
1015 1016
1017 AccountTrackerServiceFactory::GetForProfile(profile);
1016 AccountReconcilorFactory::GetForProfile(profile); 1018 AccountReconcilorFactory::GetForProfile(profile);
1017 } 1019 }
1018 1020
1019 void ProfileManager::DoFinalInitLogging(Profile* profile) { 1021 void ProfileManager::DoFinalInitLogging(Profile* profile) {
1020 // Count number of extensions in this profile. 1022 // Count number of extensions in this profile.
1021 int enabled_app_count = -1; 1023 int enabled_app_count = -1;
1022 #if defined(ENABLE_EXTENSIONS) 1024 #if defined(ENABLE_EXTENSIONS)
1023 enabled_app_count = GetEnabledAppCount(profile); 1025 enabled_app_count = GetEnabledAppCount(profile);
1024 #endif 1026 #endif
1025 1027
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 last_non_supervised_profile_path.BaseName().MaybeAsASCII()); 1325 last_non_supervised_profile_path.BaseName().MaybeAsASCII());
1324 FinishDeletingProfile(profile_to_delete_path); 1326 FinishDeletingProfile(profile_to_delete_path);
1325 } 1327 }
1326 } 1328 }
1327 } 1329 }
1328 #endif 1330 #endif
1329 1331
1330 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1332 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1331 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1333 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1332 } 1334 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698