| 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 25 matching lines...) Expand all Loading... |
| 83 #include "components/content_settings/core/browser/host_content_settings_map.h" | 82 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 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" |
| 92 #include "components/ssl_config/ssl_config_service_manager.h" |
| 93 #include "components/syncable_prefs/pref_service_syncable.h" | 93 #include "components/syncable_prefs/pref_service_syncable.h" |
| 94 #include "components/ui/zoom/zoom_event_manager.h" | 94 #include "components/ui/zoom/zoom_event_manager.h" |
| 95 #include "components/url_formatter/url_fixer.h" | 95 #include "components/url_formatter/url_fixer.h" |
| 96 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h
" | 96 #include "components/user_prefs/tracked/tracked_preference_validation_delegate.h
" |
| 97 #include "components/user_prefs/user_prefs.h" | 97 #include "components/user_prefs/user_prefs.h" |
| 98 #include "content/public/browser/browser_thread.h" | 98 #include "content/public/browser/browser_thread.h" |
| 99 #include "content/public/browser/dom_storage_context.h" | 99 #include "content/public/browser/dom_storage_context.h" |
| 100 #include "content/public/browser/notification_service.h" | 100 #include "content/public/browser/notification_service.h" |
| 101 #include "content/public/browser/render_process_host.h" | 101 #include "content/public/browser/render_process_host.h" |
| 102 #include "content/public/browser/storage_partition.h" | 102 #include "content/public/browser/storage_partition.h" |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 BrowserThread::GetBlockingPool()); | 532 BrowserThread::GetBlockingPool()); |
| 533 CreateProfileDirectory(sequenced_task_runner.get(), base_cache_path_, false); | 533 CreateProfileDirectory(sequenced_task_runner.get(), base_cache_path_, false); |
| 534 | 534 |
| 535 // Initialize components that depend on the current value. | 535 // Initialize components that depend on the current value. |
| 536 UpdateProfileSupervisedUserIdCache(); | 536 UpdateProfileSupervisedUserIdCache(); |
| 537 UpdateProfileIsEphemeralCache(); | 537 UpdateProfileIsEphemeralCache(); |
| 538 GAIAInfoUpdateServiceFactory::GetForProfile(this); | 538 GAIAInfoUpdateServiceFactory::GetForProfile(this); |
| 539 | 539 |
| 540 PrefService* local_state = g_browser_process->local_state(); | 540 PrefService* local_state = g_browser_process->local_state(); |
| 541 ssl_config_service_manager_.reset( | 541 ssl_config_service_manager_.reset( |
| 542 SSLConfigServiceManager::CreateDefaultManager(local_state)); | 542 ssl_config::SSLConfigServiceManager::CreateDefaultManager( |
| 543 local_state, |
| 544 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO))); |
| 543 | 545 |
| 544 #if defined(ENABLE_BACKGROUND) | 546 #if defined(ENABLE_BACKGROUND) |
| 545 // Initialize the BackgroundModeManager - this has to be done here before | 547 // Initialize the BackgroundModeManager - this has to be done here before |
| 546 // InitExtensions() is called because it relies on receiving notifications | 548 // InitExtensions() is called because it relies on receiving notifications |
| 547 // when extensions are loaded. BackgroundModeManager is not needed under | 549 // when extensions are loaded. BackgroundModeManager is not needed under |
| 548 // ChromeOS because Chrome is always running, no need for special keep-alive | 550 // ChromeOS because Chrome is always running, no need for special keep-alive |
| 549 // or launch-on-startup support unless kKeepAliveForTest is set. | 551 // or launch-on-startup support unless kKeepAliveForTest is set. |
| 550 bool init_background_mode_manager = true; | 552 bool init_background_mode_manager = true; |
| 551 #if defined(OS_CHROMEOS) | 553 #if defined(OS_CHROMEOS) |
| 552 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 554 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1282 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1281 domain_reliability::DomainReliabilityService* service = | 1283 domain_reliability::DomainReliabilityService* service = |
| 1282 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1284 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1283 GetForBrowserContext(this); | 1285 GetForBrowserContext(this); |
| 1284 if (!service) | 1286 if (!service) |
| 1285 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1287 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1286 | 1288 |
| 1287 return service->CreateMonitor( | 1289 return service->CreateMonitor( |
| 1288 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1290 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1289 } | 1291 } |
| OLD | NEW |