OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |