| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index e157d1f75efa2be903f47e462f7c55133715ca0d..091b94ab45e4fc6e842eee2ae63b8882801b775e 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -748,12 +748,6 @@ void ProfileManager::Observe(
|
| }
|
| }
|
|
|
| -// static
|
| -bool ProfileManager::IsImportProcess(const CommandLine& command_line) {
|
| - return (command_line.HasSwitch(switches::kImport) ||
|
| - command_line.HasSwitch(switches::kImportFromFile));
|
| -}
|
| -
|
| void ProfileManager::SetWillImport() {
|
| will_import_ = true;
|
| }
|
| @@ -829,16 +823,13 @@ void ProfileManager::DoFinalInit(Profile* profile, bool go_off_the_record) {
|
| void ProfileManager::DoFinalInitForServices(Profile* profile,
|
| bool go_off_the_record) {
|
| #if defined(ENABLE_EXTENSIONS)
|
| - const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| - if (!IsImportProcess(command_line)) {
|
| - extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
|
| - !go_off_the_record);
|
| - // During tests, when |profile| is an instance of TestingProfile,
|
| - // ExtensionSystem might not create an ExtensionService.
|
| - if (extensions::ExtensionSystem::Get(profile)->extension_service()) {
|
| - profile->GetHostContentSettingsMap()->RegisterExtensionService(
|
| - extensions::ExtensionSystem::Get(profile)->extension_service());
|
| - }
|
| + extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
|
| + !go_off_the_record);
|
| + // During tests, when |profile| is an instance of TestingProfile,
|
| + // ExtensionSystem might not create an ExtensionService.
|
| + if (extensions::ExtensionSystem::Get(profile)->extension_service()) {
|
| + profile->GetHostContentSettingsMap()->RegisterExtensionService(
|
| + extensions::ExtensionSystem::Get(profile)->extension_service());
|
| }
|
| #endif
|
| #if defined(ENABLE_MANAGED_USERS)
|
|
|