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

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: todo 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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 } 986 }
987 987
988 void ProfileManager::DoFinalInitForServices(Profile* profile, 988 void ProfileManager::DoFinalInitForServices(Profile* profile,
989 bool go_off_the_record) { 989 bool go_off_the_record) {
990 #if defined(ENABLE_EXTENSIONS) 990 #if defined(ENABLE_EXTENSIONS)
991 extensions::ExtensionSystem::Get(profile)->InitForRegularProfile( 991 extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
992 !go_off_the_record); 992 !go_off_the_record);
993 // During tests, when |profile| is an instance of TestingProfile, 993 // During tests, when |profile| is an instance of TestingProfile,
994 // ExtensionSystem might not create an ExtensionService. 994 // ExtensionSystem might not create an ExtensionService.
995 if (extensions::ExtensionSystem::Get(profile)->extension_service()) { 995 if (extensions::ExtensionSystem::Get(profile)->extension_service()) {
996 profile->GetHostContentSettingsMap()->RegisterExtensionService( 996 extensions::ExtensionSystem::Get(profile)->extension_service()->
997 extensions::ExtensionSystem::Get(profile)->extension_service()); 997 RegisterContentSettings(profile->GetHostContentSettingsMap());
998 } 998 }
999 #endif 999 #endif
1000 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID) 1000 #if defined(ENABLE_MANAGED_USERS) && !defined(OS_ANDROID)
1001 // Initialization needs to happen after extension system initialization (for 1001 // Initialization needs to happen after extension system initialization (for
1002 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the 1002 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the
1003 // initializing the supervised flag if necessary). 1003 // initializing the supervised flag if necessary).
1004 SupervisedUserServiceFactory::GetForProfile(profile)->Init(); 1004 SupervisedUserServiceFactory::GetForProfile(profile)->Init();
1005 #endif 1005 #endif
1006 // Start the deferred task runners once the profile is loaded. 1006 // Start the deferred task runners once the profile is loaded.
1007 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> 1007 StartupTaskRunnerServiceFactory::GetForProfile(profile)->
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 last_non_supervised_profile_path.BaseName().MaybeAsASCII()); 1318 last_non_supervised_profile_path.BaseName().MaybeAsASCII());
1319 FinishDeletingProfile(profile_to_delete_path); 1319 FinishDeletingProfile(profile_to_delete_path);
1320 } 1320 }
1321 } 1321 }
1322 } 1322 }
1323 #endif 1323 #endif
1324 1324
1325 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1325 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1326 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1326 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1327 } 1327 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698