| 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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "chrome/common/chrome_switches.h" | 78 #include "chrome/common/chrome_switches.h" |
| 79 #include "chrome/common/pref_names.h" | 79 #include "chrome/common/pref_names.h" |
| 80 #include "chrome/common/url_constants.h" | 80 #include "chrome/common/url_constants.h" |
| 81 #include "chrome/grit/chromium_strings.h" | 81 #include "chrome/grit/chromium_strings.h" |
| 82 #include "components/bookmarks/browser/bookmark_model.h" | 82 #include "components/bookmarks/browser/bookmark_model.h" |
| 83 #include "components/content_settings/core/browser/cookie_settings.h" | 83 #include "components/content_settings/core/browser/cookie_settings.h" |
| 84 #include "components/content_settings/core/browser/host_content_settings_map.h" | 84 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 85 #include "components/domain_reliability/monitor.h" | 85 #include "components/domain_reliability/monitor.h" |
| 86 #include "components/domain_reliability/service.h" | 86 #include "components/domain_reliability/service.h" |
| 87 #include "components/gcm_driver/gcm_profile_service.h" | 87 #include "components/gcm_driver/gcm_profile_service.h" |
| 88 #include "components/guest_view/browser/guest_view_manager.h" |
| 88 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 89 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 89 #include "components/metrics/metrics_service.h" | 90 #include "components/metrics/metrics_service.h" |
| 90 #include "components/omnibox/browser/autocomplete_classifier.h" | 91 #include "components/omnibox/browser/autocomplete_classifier.h" |
| 91 #include "components/pref_registry/pref_registry_syncable.h" | 92 #include "components/pref_registry/pref_registry_syncable.h" |
| 92 #include "components/proxy_config/pref_proxy_config_tracker.h" | 93 #include "components/proxy_config/pref_proxy_config_tracker.h" |
| 93 #include "components/signin/core/browser/signin_manager.h" | 94 #include "components/signin/core/browser/signin_manager.h" |
| 94 #include "components/signin/core/common/signin_pref_names.h" | 95 #include "components/signin/core/common/signin_pref_names.h" |
| 95 #include "components/ssl_config/ssl_config_service_manager.h" | 96 #include "components/ssl_config/ssl_config_service_manager.h" |
| 96 #include "components/syncable_prefs/pref_service_syncable.h" | 97 #include "components/syncable_prefs/pref_service_syncable.h" |
| 97 #include "components/ui/zoom/zoom_event_manager.h" | 98 #include "components/ui/zoom/zoom_event_manager.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 #else | 137 #else |
| 137 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 138 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| 138 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" | 139 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" |
| 139 #endif | 140 #endif |
| 140 #endif | 141 #endif |
| 141 | 142 |
| 142 #if defined(ENABLE_EXTENSIONS) | 143 #if defined(ENABLE_EXTENSIONS) |
| 143 #include "chrome/browser/extensions/extension_service.h" | 144 #include "chrome/browser/extensions/extension_service.h" |
| 144 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 145 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
| 145 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 146 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 146 #include "components/guest_view/browser/guest_view_manager.h" | |
| 147 #include "extensions/browser/extension_pref_store.h" | 147 #include "extensions/browser/extension_pref_store.h" |
| 148 #include "extensions/browser/extension_pref_value_map.h" | 148 #include "extensions/browser/extension_pref_value_map.h" |
| 149 #include "extensions/browser/extension_pref_value_map_factory.h" | 149 #include "extensions/browser/extension_pref_value_map_factory.h" |
| 150 #include "extensions/browser/extension_system.h" | 150 #include "extensions/browser/extension_system.h" |
| 151 #endif | 151 #endif |
| 152 | 152 |
| 153 #if defined(ENABLE_SUPERVISED_USERS) | 153 #if defined(ENABLE_SUPERVISED_USERS) |
| 154 #include "chrome/browser/content_settings/content_settings_supervised_provider.h
" | 154 #include "chrome/browser/content_settings/content_settings_supervised_provider.h
" |
| 155 #include "chrome/browser/supervised_user/supervised_user_constants.h" | 155 #include "chrome/browser/supervised_user/supervised_user_constants.h" |
| 156 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" | 156 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 // KeyedService is trying to create a RequestContext at startup, | 982 // KeyedService is trying to create a RequestContext at startup, |
| 983 // but SSLConfigServiceManager is not initialized until DoFinalInit() which is | 983 // but SSLConfigServiceManager is not initialized until DoFinalInit() which is |
| 984 // invoked after all KeyedServices have been initialized (see | 984 // invoked after all KeyedServices have been initialized (see |
| 985 // http://crbug.com/171406). | 985 // http://crbug.com/171406). |
| 986 DCHECK(ssl_config_service_manager_) << | 986 DCHECK(ssl_config_service_manager_) << |
| 987 "SSLConfigServiceManager is not initialized yet"; | 987 "SSLConfigServiceManager is not initialized yet"; |
| 988 return ssl_config_service_manager_->Get(); | 988 return ssl_config_service_manager_->Get(); |
| 989 } | 989 } |
| 990 | 990 |
| 991 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { | 991 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { |
| 992 #if defined(ENABLE_EXTENSIONS) | |
| 993 return guest_view::GuestViewManager::FromBrowserContext(this); | 992 return guest_view::GuestViewManager::FromBrowserContext(this); |
| 994 #else | |
| 995 return NULL; | |
| 996 #endif | |
| 997 } | 993 } |
| 998 | 994 |
| 999 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 995 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
| 1000 return DownloadServiceFactory::GetForBrowserContext(this)-> | 996 return DownloadServiceFactory::GetForBrowserContext(this)-> |
| 1001 GetDownloadManagerDelegate(); | 997 GetDownloadManagerDelegate(); |
| 1002 } | 998 } |
| 1003 | 999 |
| 1004 storage::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1000 storage::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
| 1005 #if defined(ENABLE_EXTENSIONS) | 1001 #if defined(ENABLE_EXTENSIONS) |
| 1006 return GetExtensionSpecialStoragePolicy(); | 1002 return GetExtensionSpecialStoragePolicy(); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1273 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1278 domain_reliability::DomainReliabilityService* service = | 1274 domain_reliability::DomainReliabilityService* service = |
| 1279 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1275 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1280 GetForBrowserContext(this); | 1276 GetForBrowserContext(this); |
| 1281 if (!service) | 1277 if (!service) |
| 1282 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1278 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1283 | 1279 |
| 1284 return service->CreateMonitor( | 1280 return service->CreateMonitor( |
| 1285 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1281 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1286 } | 1282 } |
| OLD | NEW |