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

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

Issue 2762173003: Remove IsNewProfileManagement and EnableNewProfileManagementForTesting (Closed)
Patch Set: Fix compile (add back an include) Created 3 years, 9 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "components/invalidation/public/invalidation_service.h" 74 #include "components/invalidation/public/invalidation_service.h"
75 #include "components/password_manager/core/browser/password_store.h" 75 #include "components/password_manager/core/browser/password_store.h"
76 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h" 76 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h"
77 #include "components/prefs/pref_service.h" 77 #include "components/prefs/pref_service.h"
78 #include "components/prefs/scoped_user_pref_update.h" 78 #include "components/prefs/scoped_user_pref_update.h"
79 #include "components/search_engines/default_search_manager.h" 79 #include "components/search_engines/default_search_manager.h"
80 #include "components/signin/core/browser/account_fetcher_service.h" 80 #include "components/signin/core/browser/account_fetcher_service.h"
81 #include "components/signin/core/browser/account_tracker_service.h" 81 #include "components/signin/core/browser/account_tracker_service.h"
82 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 82 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
83 #include "components/signin/core/browser/signin_manager.h" 83 #include "components/signin/core/browser/signin_manager.h"
84 #include "components/signin/core/common/profile_management_switches.h"
85 #include "components/signin/core/common/signin_pref_names.h" 84 #include "components/signin/core/common/signin_pref_names.h"
86 #include "components/sync/base/stop_source.h" 85 #include "components/sync/base/stop_source.h"
87 #include "content/public/browser/browser_thread.h" 86 #include "content/public/browser/browser_thread.h"
88 #include "content/public/browser/notification_service.h" 87 #include "content/public/browser/notification_service.h"
89 #include "content/public/browser/user_metrics.h" 88 #include "content/public/browser/user_metrics.h"
90 #include "content/public/common/content_switches.h" 89 #include "content/public/common/content_switches.h"
91 #include "extensions/features/features.h" 90 #include "extensions/features/features.h"
92 #include "net/http/http_transaction_factory.h" 91 #include "net/http/http_transaction_factory.h"
93 #include "net/url_request/url_request_context.h" 92 #include "net/url_request/url_request_context.h"
94 #include "net/url_request/url_request_context_getter.h" 93 #include "net/url_request/url_request_context_getter.h"
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 // Initialization needs to happen after extension system initialization (for 1237 // Initialization needs to happen after extension system initialization (for
1239 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the 1238 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the
1240 // initializing the supervised flag if necessary). 1239 // initializing the supervised flag if necessary).
1241 ChildAccountServiceFactory::GetForProfile(profile)->Init(); 1240 ChildAccountServiceFactory::GetForProfile(profile)->Init();
1242 SupervisedUserServiceFactory::GetForProfile(profile)->Init(); 1241 SupervisedUserServiceFactory::GetForProfile(profile)->Init();
1243 #endif 1242 #endif
1244 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) 1243 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
1245 // If the lock enabled algorithm changed, update this profile's lock status. 1244 // If the lock enabled algorithm changed, update this profile's lock status.
1246 // This depends on services which shouldn't be initialized until 1245 // This depends on services which shouldn't be initialized until
1247 // DoFinalInitForServices. 1246 // DoFinalInitForServices.
1248 if (switches::IsNewProfileManagement()) 1247 profiles::UpdateIsProfileLockEnabledIfNeeded(profile);
1249 profiles::UpdateIsProfileLockEnabledIfNeeded(profile);
1250 #endif 1248 #endif
1251 // Start the deferred task runners once the profile is loaded. 1249 // Start the deferred task runners once the profile is loaded.
1252 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 1250 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
1253 StartDeferredTaskRunners(); 1251 StartDeferredTaskRunners();
1254 1252
1255 // Activate data reduction proxy. This creates a request context and makes a 1253 // Activate data reduction proxy. This creates a request context and makes a
1256 // URL request to check if the data reduction proxy server is reachable. 1254 // URL request to check if the data reduction proxy server is reachable.
1257 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> 1255 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)->
1258 MaybeActivateDataReductionProxy(true); 1256 MaybeActivateDataReductionProxy(true);
1259 1257
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 1785
1788 const base::FilePath new_active_profile_dir = 1786 const base::FilePath new_active_profile_dir =
1789 found_entry ? found_entry->GetPath() : GenerateNextProfileDirectoryPath(); 1787 found_entry ? found_entry->GetPath() : GenerateNextProfileDirectoryPath();
1790 FinishDeletingProfile(profile_dir, new_active_profile_dir); 1788 FinishDeletingProfile(profile_dir, new_active_profile_dir);
1791 } 1789 }
1792 #endif // !defined(OS_ANDROID) 1790 #endif // !defined(OS_ANDROID)
1793 1791
1794 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1792 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1795 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1793 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1796 } 1794 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | chrome/browser/profiles/profile_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698