| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 67 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 68 #include "chrome/browser/services/gcm/gcm_profile_service.h" | 68 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
| 69 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 69 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 70 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" | 70 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" |
| 71 #include "chrome/browser/sessions/session_service_factory.h" | 71 #include "chrome/browser/sessions/session_service_factory.h" |
| 72 #include "chrome/browser/signin/signin_ui_util.h" | 72 #include "chrome/browser/signin/signin_ui_util.h" |
| 73 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" | 73 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" |
| 74 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" | 74 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" |
| 75 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 75 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 76 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 76 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
| 77 #include "chrome/browser/ui/zoom/zoom_event_manager.h" | |
| 78 #include "chrome/common/chrome_constants.h" | 77 #include "chrome/common/chrome_constants.h" |
| 79 #include "chrome/common/chrome_paths_internal.h" | 78 #include "chrome/common/chrome_paths_internal.h" |
| 80 #include "chrome/common/chrome_switches.h" | 79 #include "chrome/common/chrome_switches.h" |
| 81 #include "chrome/common/chrome_version_info.h" | 80 #include "chrome/common/chrome_version_info.h" |
| 82 #include "chrome/common/pref_names.h" | 81 #include "chrome/common/pref_names.h" |
| 83 #include "chrome/common/url_constants.h" | 82 #include "chrome/common/url_constants.h" |
| 84 #include "chrome/grit/chromium_strings.h" | 83 #include "chrome/grit/chromium_strings.h" |
| 85 #include "components/bookmarks/browser/bookmark_model.h" | 84 #include "components/bookmarks/browser/bookmark_model.h" |
| 86 #include "components/content_settings/core/browser/host_content_settings_map.h" | 85 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 87 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" | 86 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" |
| 88 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | 87 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" |
| 89 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" | 88 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_stat
istics_prefs.h" |
| 90 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 89 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| 91 #include "components/domain_reliability/monitor.h" | 90 #include "components/domain_reliability/monitor.h" |
| 92 #include "components/domain_reliability/service.h" | 91 #include "components/domain_reliability/service.h" |
| 93 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 92 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 94 #include "components/metrics/metrics_service.h" | 93 #include "components/metrics/metrics_service.h" |
| 95 #include "components/pref_registry/pref_registry_syncable.h" | 94 #include "components/pref_registry/pref_registry_syncable.h" |
| 96 #include "components/startup_metric_utils/startup_metric_utils.h" | 95 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 96 #include "components/ui/zoom/zoom_event_manager.h" |
| 97 #include "components/url_fixer/url_fixer.h" | 97 #include "components/url_fixer/url_fixer.h" |
| 98 #include "components/user_prefs/user_prefs.h" | 98 #include "components/user_prefs/user_prefs.h" |
| 99 #include "content/public/browser/browser_thread.h" | 99 #include "content/public/browser/browser_thread.h" |
| 100 #include "content/public/browser/dom_storage_context.h" | 100 #include "content/public/browser/dom_storage_context.h" |
| 101 #include "content/public/browser/notification_service.h" | 101 #include "content/public/browser/notification_service.h" |
| 102 #include "content/public/browser/render_process_host.h" | 102 #include "content/public/browser/render_process_host.h" |
| 103 #include "content/public/browser/storage_partition.h" | 103 #include "content/public/browser/storage_partition.h" |
| 104 #include "content/public/browser/url_data_source.h" | 104 #include "content/public/browser/url_data_source.h" |
| 105 #include "content/public/browser/user_metrics.h" | 105 #include "content/public/browser/user_metrics.h" |
| 106 #include "content/public/common/content_constants.h" | 106 #include "content/public/common/content_constants.h" |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 } | 845 } |
| 846 | 846 |
| 847 Profile::ProfileType ProfileImpl::GetProfileType() const { | 847 Profile::ProfileType ProfileImpl::GetProfileType() const { |
| 848 return REGULAR_PROFILE; | 848 return REGULAR_PROFILE; |
| 849 } | 849 } |
| 850 | 850 |
| 851 scoped_ptr<content::ZoomLevelDelegate> | 851 scoped_ptr<content::ZoomLevelDelegate> |
| 852 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { | 852 ProfileImpl::CreateZoomLevelDelegate(const base::FilePath& partition_path) { |
| 853 return make_scoped_ptr(new chrome::ChromeZoomLevelPrefs( | 853 return make_scoped_ptr(new chrome::ChromeZoomLevelPrefs( |
| 854 GetPrefs(), GetPath(), partition_path, | 854 GetPrefs(), GetPath(), partition_path, |
| 855 ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); | 855 ui_zoom::ZoomEventManager::GetForBrowserContext(this)->GetWeakPtr())); |
| 856 } | 856 } |
| 857 | 857 |
| 858 base::FilePath ProfileImpl::GetPath() const { | 858 base::FilePath ProfileImpl::GetPath() const { |
| 859 return path_; | 859 return path_; |
| 860 } | 860 } |
| 861 | 861 |
| 862 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { | 862 scoped_refptr<base::SequencedTaskRunner> ProfileImpl::GetIOTaskRunner() { |
| 863 return JsonPrefStore::GetTaskRunnerForFile( | 863 return JsonPrefStore::GetTaskRunnerForFile( |
| 864 GetPath(), BrowserThread::GetBlockingPool()); | 864 GetPath(), BrowserThread::GetBlockingPool()); |
| 865 } | 865 } |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1423 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1424 domain_reliability::DomainReliabilityService* service = | 1424 domain_reliability::DomainReliabilityService* service = |
| 1425 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1425 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1426 GetForBrowserContext(this); | 1426 GetForBrowserContext(this); |
| 1427 if (!service) | 1427 if (!service) |
| 1428 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1428 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1429 | 1429 |
| 1430 return service->CreateMonitor( | 1430 return service->CreateMonitor( |
| 1431 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1431 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1432 } | 1432 } |
| OLD | NEW |