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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |