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

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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 } 975 }
976 976
977 void ProfileManager::DoFinalInitForServices(Profile* profile, 977 void ProfileManager::DoFinalInitForServices(Profile* profile,
978 bool go_off_the_record) { 978 bool go_off_the_record) {
979 #if defined(ENABLE_EXTENSIONS) 979 #if defined(ENABLE_EXTENSIONS)
980 extensions::ExtensionSystem::Get(profile)->InitForRegularProfile( 980 extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
981 !go_off_the_record); 981 !go_off_the_record);
982 // During tests, when |profile| is an instance of TestingProfile, 982 // During tests, when |profile| is an instance of TestingProfile,
983 // ExtensionSystem might not create an ExtensionService. 983 // ExtensionSystem might not create an ExtensionService.
984 if (extensions::ExtensionSystem::Get(profile)->extension_service()) { 984 if (extensions::ExtensionSystem::Get(profile)->extension_service()) {
985 profile->GetHostContentSettingsMap()->RegisterExtensionService( 985 extensions::ExtensionSystem::Get(profile)->extension_service()->
986 extensions::ExtensionSystem::Get(profile)->extension_service()); 986 RegisterContentSettings(profile->GetHostContentSettingsMap());
987 } 987 }
988 #endif 988 #endif
989 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID) 989 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID)
990 // Initialization needs to happen after extension system initialization (for 990 // Initialization needs to happen after extension system initialization (for
991 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the 991 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the
992 // initializing the supervised flag if necessary). 992 // initializing the supervised flag if necessary).
993 SupervisedUserServiceFactory::GetForProfile(profile)->Init(); 993 SupervisedUserServiceFactory::GetForProfile(profile)->Init();
994 #endif 994 #endif
995 // Start the deferred task runners once the profile is loaded. 995 // Start the deferred task runners once the profile is loaded.
996 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 996 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 last_non_supervised_profile_path.BaseName().MaybeAsASCII()); 1304 last_non_supervised_profile_path.BaseName().MaybeAsASCII());
1305 FinishDeletingProfile(profile_to_delete_path); 1305 FinishDeletingProfile(profile_to_delete_path);
1306 } 1306 }
1307 } 1307 }
1308 } 1308 }
1309 #endif 1309 #endif
1310 1310
1311 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1311 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1312 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1312 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1313 } 1313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698