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 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 37 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
38 #include "chrome/browser/browser_process.h" | 38 #include "chrome/browser/browser_process.h" |
39 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | 39 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
40 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_fac
tory.h" | 40 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_fac
tory.h" |
41 #include "chrome/browser/chrome_notification_types.h" | 41 #include "chrome/browser/chrome_notification_types.h" |
42 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 42 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
43 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 43 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
44 #include "chrome/browser/dom_distiller/profile_utils.h" | 44 #include "chrome/browser/dom_distiller/profile_utils.h" |
45 #include "chrome/browser/domain_reliability/service_factory.h" | 45 #include "chrome/browser/domain_reliability/service_factory.h" |
46 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 46 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
47 #include "chrome/browser/download/download_service.h" | 47 #include "chrome/browser/download/download_core_service.h" |
48 #include "chrome/browser/download/download_service_factory.h" | 48 #include "chrome/browser/download/download_core_service_factory.h" |
49 #include "chrome/browser/media/media_device_id_salt.h" | 49 #include "chrome/browser/media/media_device_id_salt.h" |
50 #include "chrome/browser/net/predictor.h" | 50 #include "chrome/browser/net/predictor.h" |
51 #include "chrome/browser/net/proxy_service_factory.h" | 51 #include "chrome/browser/net/proxy_service_factory.h" |
52 #include "chrome/browser/permissions/permission_manager.h" | 52 #include "chrome/browser/permissions/permission_manager.h" |
53 #include "chrome/browser/permissions/permission_manager_factory.h" | 53 #include "chrome/browser/permissions/permission_manager_factory.h" |
54 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 54 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
55 #include "chrome/browser/plugins/plugin_prefs.h" | 55 #include "chrome/browser/plugins/plugin_prefs.h" |
56 #include "chrome/browser/policy/profile_policy_connector.h" | 56 #include "chrome/browser/policy/profile_policy_connector.h" |
57 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 57 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
58 #include "chrome/browser/policy/schema_registry_service.h" | 58 #include "chrome/browser/policy/schema_registry_service.h" |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 | 1003 |
1004 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { | 1004 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { |
1005 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1005 #if BUILDFLAG(ENABLE_EXTENSIONS) |
1006 return guest_view::GuestViewManager::FromBrowserContext(this); | 1006 return guest_view::GuestViewManager::FromBrowserContext(this); |
1007 #else | 1007 #else |
1008 return NULL; | 1008 return NULL; |
1009 #endif | 1009 #endif |
1010 } | 1010 } |
1011 | 1011 |
1012 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 1012 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
1013 return DownloadServiceFactory::GetForBrowserContext(this)-> | 1013 return DownloadCoreServiceFactory::GetForBrowserContext(this) |
1014 GetDownloadManagerDelegate(); | 1014 ->GetDownloadManagerDelegate(); |
1015 } | 1015 } |
1016 | 1016 |
1017 storage::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1017 storage::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
1018 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1018 #if BUILDFLAG(ENABLE_EXTENSIONS) |
1019 return GetExtensionSpecialStoragePolicy(); | 1019 return GetExtensionSpecialStoragePolicy(); |
1020 #else | 1020 #else |
1021 return NULL; | 1021 return NULL; |
1022 #endif | 1022 #endif |
1023 } | 1023 } |
1024 | 1024 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1361 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1362 | 1362 |
1363 return service->CreateMonitor( | 1363 return service->CreateMonitor( |
1364 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); | 1364 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); |
1365 } | 1365 } |
1366 | 1366 |
1367 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { | 1367 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { |
1368 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); | 1368 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); |
1369 return base::MakeUnique<identity::IdentityService>(signin_manager); | 1369 return base::MakeUnique<identity::IdentityService>(signin_manager); |
1370 } | 1370 } |
OLD | NEW |