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

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

Issue 276463002: non-new-profile-management creates a "no-op" style account_reconcilor, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/signin/account_reconcilor_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 #if defined(ENABLE_MANAGED_USERS) 975 #if defined(ENABLE_MANAGED_USERS)
976 // Initialization needs to happen after extension system initialization (for 976 // Initialization needs to happen after extension system initialization (for
977 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the 977 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the
978 // initializing the managed flag if necessary). 978 // initializing the managed flag if necessary).
979 ManagedUserServiceFactory::GetForProfile(profile)->Init(); 979 ManagedUserServiceFactory::GetForProfile(profile)->Init();
980 #endif 980 #endif
981 // Start the deferred task runners once the profile is loaded. 981 // Start the deferred task runners once the profile is loaded.
982 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 982 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
983 StartDeferredTaskRunners(); 983 StartDeferredTaskRunners();
984 984
985 if (switches::IsNewProfileManagement()) 985 AccountReconcilorFactory::GetForProfile(profile);
986 AccountReconcilorFactory::GetForProfile(profile);
987 } 986 }
988 987
989 void ProfileManager::DoFinalInitLogging(Profile* profile) { 988 void ProfileManager::DoFinalInitLogging(Profile* profile) {
990 // Count number of extensions in this profile. 989 // Count number of extensions in this profile.
991 int enabled_app_count = -1; 990 int enabled_app_count = -1;
992 #if defined(ENABLE_EXTENSIONS) 991 #if defined(ENABLE_EXTENSIONS)
993 enabled_app_count = GetEnabledAppCount(profile); 992 enabled_app_count = GetEnabledAppCount(profile);
994 #endif 993 #endif
995 994
996 // Log the profile size after a reasonable startup delay. 995 // Log the profile size after a reasonable startup delay.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 last_non_managed_profile_path.BaseName().MaybeAsASCII()); 1280 last_non_managed_profile_path.BaseName().MaybeAsASCII());
1282 FinishDeletingProfile(profile_to_delete_path); 1281 FinishDeletingProfile(profile_to_delete_path);
1283 } 1282 }
1284 } 1283 }
1285 } 1284 }
1286 #endif 1285 #endif
1287 1286
1288 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1287 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1289 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1288 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1290 } 1289 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/account_reconcilor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698