| 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 26 matching lines...) Expand all Loading... |
| 37 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 37 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
| 38 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 38 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 39 #include "chrome/browser/dom_distiller/profile_utils.h" | 39 #include "chrome/browser/dom_distiller/profile_utils.h" |
| 40 #include "chrome/browser/domain_reliability/service_factory.h" | 40 #include "chrome/browser/domain_reliability/service_factory.h" |
| 41 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 41 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 42 #include "chrome/browser/download/download_service.h" | 42 #include "chrome/browser/download/download_service.h" |
| 43 #include "chrome/browser/download/download_service_factory.h" | 43 #include "chrome/browser/download/download_service_factory.h" |
| 44 #include "chrome/browser/net/net_pref_observer.h" | 44 #include "chrome/browser/net/net_pref_observer.h" |
| 45 #include "chrome/browser/net/predictor.h" | 45 #include "chrome/browser/net/predictor.h" |
| 46 #include "chrome/browser/net/proxy_service_factory.h" | 46 #include "chrome/browser/net/proxy_service_factory.h" |
| 47 #include "chrome/browser/net/ssl_config_service_manager.h" | |
| 48 #include "chrome/browser/permissions/permission_manager.h" | 47 #include "chrome/browser/permissions/permission_manager.h" |
| 49 #include "chrome/browser/permissions/permission_manager_factory.h" | 48 #include "chrome/browser/permissions/permission_manager_factory.h" |
| 50 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 49 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| 51 #include "chrome/browser/plugins/plugin_prefs.h" | 50 #include "chrome/browser/plugins/plugin_prefs.h" |
| 52 #include "chrome/browser/policy/profile_policy_connector.h" | 51 #include "chrome/browser/policy/profile_policy_connector.h" |
| 53 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 52 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 54 #include "chrome/browser/prefs/browser_prefs.h" | 53 #include "chrome/browser/prefs/browser_prefs.h" |
| 55 #include "chrome/browser/prefs/chrome_pref_service_factory.h" | 54 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
| 56 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 55 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
| 57 #include "chrome/browser/prerender/prerender_manager_factory.h" | 56 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 84 #include "components/domain_reliability/monitor.h" | 83 #include "components/domain_reliability/monitor.h" |
| 85 #include "components/domain_reliability/service.h" | 84 #include "components/domain_reliability/service.h" |
| 86 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 85 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 87 #include "components/metrics/metrics_service.h" | 86 #include "components/metrics/metrics_service.h" |
| 88 #include "components/omnibox/browser/autocomplete_classifier.h" | 87 #include "components/omnibox/browser/autocomplete_classifier.h" |
| 89 #include "components/omnibox/browser/shortcuts_backend.h" | 88 #include "components/omnibox/browser/shortcuts_backend.h" |
| 90 #include "components/pref_registry/pref_registry_syncable.h" | 89 #include "components/pref_registry/pref_registry_syncable.h" |
| 91 #include "components/proxy_config/pref_proxy_config_tracker.h" | 90 #include "components/proxy_config/pref_proxy_config_tracker.h" |
| 92 #include "components/signin/core/browser/signin_manager.h" | 91 #include "components/signin/core/browser/signin_manager.h" |
| 93 #include "components/signin/core/common/signin_pref_names.h" | 92 #include "components/signin/core/common/signin_pref_names.h" |
| 93 #include "components/ssl_config/ssl_config_service_manager.h" |
| 94 #include "components/syncable_prefs/pref_service_syncable.h" | 94 #include "components/syncable_prefs/pref_service_syncable.h" |
| 95 #include "components/ui/zoom/zoom_event_manager.h" | 95 #include "components/ui/zoom/zoom_event_manager.h" |
| 96 #include "components/url_formatter/url_fixer.h" | 96 #include "components/url_formatter/url_fixer.h" |
| 97 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h
" | 97 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.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" |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 BrowserThread::GetBlockingPool()); | 533 BrowserThread::GetBlockingPool()); |
| 534 CreateProfileDirectory(sequenced_task_runner.get(), base_cache_path_, false); | 534 CreateProfileDirectory(sequenced_task_runner.get(), base_cache_path_, false); |
| 535 | 535 |
| 536 // Initialize components that depend on the current value. | 536 // Initialize components that depend on the current value. |
| 537 UpdateProfileSupervisedUserIdCache(); | 537 UpdateProfileSupervisedUserIdCache(); |
| 538 UpdateProfileIsEphemeralCache(); | 538 UpdateProfileIsEphemeralCache(); |
| 539 GAIAInfoUpdateServiceFactory::GetForProfile(this); | 539 GAIAInfoUpdateServiceFactory::GetForProfile(this); |
| 540 | 540 |
| 541 PrefService* local_state = g_browser_process->local_state(); | 541 PrefService* local_state = g_browser_process->local_state(); |
| 542 ssl_config_service_manager_.reset( | 542 ssl_config_service_manager_.reset( |
| 543 SSLConfigServiceManager::CreateDefaultManager(local_state)); | 543 ssl_config::SSLConfigServiceManager::CreateDefaultManager( |
| 544 local_state, |
| 545 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); |
| 544 | 546 |
| 545 #if defined(ENABLE_BACKGROUND) | 547 #if defined(ENABLE_BACKGROUND) |
| 546 // Initialize the BackgroundModeManager - this has to be done here before | 548 // Initialize the BackgroundModeManager - this has to be done here before |
| 547 // InitExtensions() is called because it relies on receiving notifications | 549 // InitExtensions() is called because it relies on receiving notifications |
| 548 // when extensions are loaded. BackgroundModeManager is not needed under | 550 // when extensions are loaded. BackgroundModeManager is not needed under |
| 549 // ChromeOS because Chrome is always running, no need for special keep-alive | 551 // ChromeOS because Chrome is always running, no need for special keep-alive |
| 550 // or launch-on-startup support unless kKeepAliveForTest is set. | 552 // or launch-on-startup support unless kKeepAliveForTest is set. |
| 551 bool init_background_mode_manager = true; | 553 bool init_background_mode_manager = true; |
| 552 #if defined(OS_CHROMEOS) | 554 #if defined(OS_CHROMEOS) |
| 553 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 555 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1283 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1282 domain_reliability::DomainReliabilityService* service = | 1284 domain_reliability::DomainReliabilityService* service = |
| 1283 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1285 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1284 GetForBrowserContext(this); | 1286 GetForBrowserContext(this); |
| 1285 if (!service) | 1287 if (!service) |
| 1286 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1288 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1287 | 1289 |
| 1288 return service->CreateMonitor( | 1290 return service->CreateMonitor( |
| 1289 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1291 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1290 } | 1292 } |
| OLD | NEW |