| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" | 63 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" |
| 64 #include "chrome/browser/profiles/profile_destroyer.h" | 64 #include "chrome/browser/profiles/profile_destroyer.h" |
| 65 #include "chrome/browser/profiles/profile_info_cache.h" | 65 #include "chrome/browser/profiles/profile_info_cache.h" |
| 66 #include "chrome/browser/profiles/profile_manager.h" | 66 #include "chrome/browser/profiles/profile_manager.h" |
| 67 #include "chrome/browser/profiles/profile_metrics.h" | 67 #include "chrome/browser/profiles/profile_metrics.h" |
| 68 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 68 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 69 #include "chrome/browser/services/gcm/gcm_profile_service.h" | 69 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
| 70 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 70 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 71 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" | 71 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" |
| 72 #include "chrome/browser/sessions/session_service_factory.h" | 72 #include "chrome/browser/sessions/session_service_factory.h" |
| 73 #include "chrome/browser/ssl/chrome_ssl_host_state_decisions.h" |
| 74 #include "chrome/browser/ssl/chrome_ssl_host_state_decisions_factory.h" |
| 73 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 75 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 74 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 76 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 75 #include "chrome/common/chrome_constants.h" | 77 #include "chrome/common/chrome_constants.h" |
| 76 #include "chrome/common/chrome_paths_internal.h" | 78 #include "chrome/common/chrome_paths_internal.h" |
| 77 #include "chrome/common/chrome_switches.h" | 79 #include "chrome/common/chrome_switches.h" |
| 78 #include "chrome/common/chrome_version_info.h" | 80 #include "chrome/common/chrome_version_info.h" |
| 79 #include "chrome/common/pref_names.h" | 81 #include "chrome/common/pref_names.h" |
| 80 #include "chrome/common/url_constants.h" | 82 #include "chrome/common/url_constants.h" |
| 81 #include "components/bookmarks/browser/bookmark_model.h" | 83 #include "components/bookmarks/browser/bookmark_model.h" |
| 82 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" | 84 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 | 1032 |
| 1031 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1033 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
| 1032 return GetExtensionSpecialStoragePolicy(); | 1034 return GetExtensionSpecialStoragePolicy(); |
| 1033 } | 1035 } |
| 1034 | 1036 |
| 1035 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { | 1037 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { |
| 1036 return gcm::GCMProfileServiceFactory::GetForProfile( | 1038 return gcm::GCMProfileServiceFactory::GetForProfile( |
| 1037 this)->push_messaging_service(); | 1039 this)->push_messaging_service(); |
| 1038 } | 1040 } |
| 1039 | 1041 |
| 1042 content::SSLHostStateDecisions* ProfileImpl::GetSSLHostStateDecisions() { |
| 1043 return ChromeSSLHostStateDecisionsFactory::GetForProfile(this); |
| 1044 } |
| 1045 |
| 1040 bool ProfileImpl::IsSameProfile(Profile* profile) { | 1046 bool ProfileImpl::IsSameProfile(Profile* profile) { |
| 1041 if (profile == static_cast<Profile*>(this)) | 1047 if (profile == static_cast<Profile*>(this)) |
| 1042 return true; | 1048 return true; |
| 1043 Profile* otr_profile = off_the_record_profile_.get(); | 1049 Profile* otr_profile = off_the_record_profile_.get(); |
| 1044 return otr_profile && profile == otr_profile; | 1050 return otr_profile && profile == otr_profile; |
| 1045 } | 1051 } |
| 1046 | 1052 |
| 1047 Time ProfileImpl::GetStartTime() const { | 1053 Time ProfileImpl::GetStartTime() const { |
| 1048 return start_time_; | 1054 return start_time_; |
| 1049 } | 1055 } |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 ProfileImpl::CreateDomainReliabilityMonitor() { | 1327 ProfileImpl::CreateDomainReliabilityMonitor() { |
| 1322 domain_reliability::DomainReliabilityService* service = | 1328 domain_reliability::DomainReliabilityService* service = |
| 1323 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1329 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1324 GetForBrowserContext(this); | 1330 GetForBrowserContext(this); |
| 1325 if (!service) | 1331 if (!service) |
| 1326 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1332 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1327 | 1333 |
| 1328 return service->CreateMonitor( | 1334 return service->CreateMonitor( |
| 1329 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1335 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1330 } | 1336 } |
| OLD | NEW |