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

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

Issue 545413002: Detach the dependency from host_content_settings_map to extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 3 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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 } 977 }
978 978
979 void ProfileManager::DoFinalInitForServices(Profile* profile, 979 void ProfileManager::DoFinalInitForServices(Profile* profile,
980 bool go_off_the_record) { 980 bool go_off_the_record) {
981 #if defined(ENABLE_EXTENSIONS) 981 #if defined(ENABLE_EXTENSIONS)
982 extensions::ExtensionSystem::Get(profile)->InitForRegularProfile( 982 extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
983 !go_off_the_record); 983 !go_off_the_record);
984 // During tests, when |profile| is an instance of TestingProfile, 984 // During tests, when |profile| is an instance of TestingProfile,
985 // ExtensionSystem might not create an ExtensionService. 985 // ExtensionSystem might not create an ExtensionService.
986 if (extensions::ExtensionSystem::Get(profile)->extension_service()) { 986 if (extensions::ExtensionSystem::Get(profile)->extension_service()) {
987 profile->GetHostContentSettingsMap()->RegisterExtensionService( 987 extensions::ExtensionSystem::Get(profile)->extension_service()->
988 extensions::ExtensionSystem::Get(profile)->extension_service()); 988 RegisterContentSettings(profile->GetHostContentSettingsMap());
989 } 989 }
990 #endif 990 #endif
991 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID) 991 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID)
992 // Initialization needs to happen after extension system initialization (for 992 // Initialization needs to happen after extension system initialization (for
993 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the 993 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the
994 // initializing the supervised flag if necessary). 994 // initializing the supervised flag if necessary).
995 SupervisedUserServiceFactory::GetForProfile(profile)->Init(); 995 SupervisedUserServiceFactory::GetForProfile(profile)->Init();
996 #endif 996 #endif
997 // Start the deferred task runners once the profile is loaded. 997 // Start the deferred task runners once the profile is loaded.
998 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 998 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 last_non_supervised_profile_path.BaseName().MaybeAsASCII()); 1306 last_non_supervised_profile_path.BaseName().MaybeAsASCII());
1307 FinishDeletingProfile(profile_to_delete_path); 1307 FinishDeletingProfile(profile_to_delete_path);
1308 } 1308 }
1309 } 1309 }
1310 } 1310 }
1311 #endif 1311 #endif
1312 1312
1313 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1313 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1314 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1314 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1315 } 1315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698