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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 #include "extensions/common/extension_set.h" | 55 #include "extensions/common/extension_set.h" |
56 #include "extensions/common/manifest.h" | 56 #include "extensions/common/manifest.h" |
57 #include "grit/generated_resources.h" | 57 #include "grit/generated_resources.h" |
58 #include "net/http/http_transaction_factory.h" | 58 #include "net/http/http_transaction_factory.h" |
59 #include "net/url_request/url_request_context.h" | 59 #include "net/url_request/url_request_context.h" |
60 #include "net/url_request/url_request_context_getter.h" | 60 #include "net/url_request/url_request_context_getter.h" |
61 #include "net/url_request/url_request_job.h" | 61 #include "net/url_request/url_request_job.h" |
62 #include "ui/base/l10n/l10n_util.h" | 62 #include "ui/base/l10n/l10n_util.h" |
63 | 63 |
64 #if defined(ENABLE_MANAGED_USERS) | 64 #if defined(ENABLE_MANAGED_USERS) |
65 #include "chrome/browser/managed_mode/managed_user_service.h" | 65 #include "chrome/browser/supervised_user/supervised_user_service.h" |
66 #include "chrome/browser/managed_mode/managed_user_service_factory.h" | 66 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
67 #endif | 67 #endif |
68 | 68 |
69 #if !defined(OS_IOS) | 69 #if !defined(OS_IOS) |
70 #include "chrome/browser/extensions/extension_service.h" | 70 #include "chrome/browser/extensions/extension_service.h" |
71 #include "chrome/browser/sessions/session_service_factory.h" | 71 #include "chrome/browser/sessions/session_service_factory.h" |
72 #include "chrome/browser/ui/browser_list.h" | 72 #include "chrome/browser/ui/browser_list.h" |
73 #include "extensions/browser/extension_system.h" | 73 #include "extensions/browser/extension_system.h" |
74 #endif // !defined (OS_IOS) | 74 #endif // !defined (OS_IOS) |
75 | 75 |
76 #if defined(OS_WIN) | 76 #if defined(OS_WIN) |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 // ExtensionSystem might not create an ExtensionService. | 978 // ExtensionSystem might not create an ExtensionService. |
979 if (extensions::ExtensionSystem::Get(profile)->extension_service()) { | 979 if (extensions::ExtensionSystem::Get(profile)->extension_service()) { |
980 profile->GetHostContentSettingsMap()->RegisterExtensionService( | 980 profile->GetHostContentSettingsMap()->RegisterExtensionService( |
981 extensions::ExtensionSystem::Get(profile)->extension_service()); | 981 extensions::ExtensionSystem::Get(profile)->extension_service()); |
982 } | 982 } |
983 #endif | 983 #endif |
984 #if defined(ENABLE_MANAGED_USERS) | 984 #if defined(ENABLE_MANAGED_USERS) |
985 // Initialization needs to happen after extension system initialization (for | 985 // Initialization needs to happen after extension system initialization (for |
986 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the | 986 // extension::ManagementPolicy) and InitProfileUserPrefs (for setting the |
987 // initializing the supervised flag if necessary). | 987 // initializing the supervised flag if necessary). |
988 ManagedUserServiceFactory::GetForProfile(profile)->Init(); | 988 SupervisedUserServiceFactory::GetForProfile(profile)->Init(); |
989 #endif | 989 #endif |
990 // Start the deferred task runners once the profile is loaded. | 990 // Start the deferred task runners once the profile is loaded. |
991 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> | 991 StartupTaskRunnerServiceFactory::GetForProfile(profile)-> |
992 StartDeferredTaskRunners(); | 992 StartDeferredTaskRunners(); |
993 | 993 |
994 AccountReconcilorFactory::GetForProfile(profile); | 994 AccountReconcilorFactory::GetForProfile(profile); |
995 } | 995 } |
996 | 996 |
997 void ProfileManager::DoFinalInitLogging(Profile* profile) { | 997 void ProfileManager::DoFinalInitLogging(Profile* profile) { |
998 // Count number of extensions in this profile. | 998 // Count number of extensions in this profile. |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 last_non_supervised_profile_path.BaseName().MaybeAsASCII()); | 1289 last_non_supervised_profile_path.BaseName().MaybeAsASCII()); |
1290 FinishDeletingProfile(profile_to_delete_path); | 1290 FinishDeletingProfile(profile_to_delete_path); |
1291 } | 1291 } |
1292 } | 1292 } |
1293 } | 1293 } |
1294 #endif | 1294 #endif |
1295 | 1295 |
1296 ProfileManagerWithoutInit::ProfileManagerWithoutInit( | 1296 ProfileManagerWithoutInit::ProfileManagerWithoutInit( |
1297 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { | 1297 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { |
1298 } | 1298 } |
OLD | NEW |