Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/search_engines/template_url_fetcher.h" 69 #include "chrome/browser/search_engines/template_url_fetcher.h"
70 #include "chrome/browser/services/gcm/gcm_profile_service.h" 70 #include "chrome/browser/services/gcm/gcm_profile_service.h"
71 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" 71 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
72 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" 72 #include "chrome/browser/services/gcm/push_messaging_service_impl.h"
73 #include "chrome/browser/sessions/session_service_factory.h" 73 #include "chrome/browser/sessions/session_service_factory.h"
74 #include "chrome/browser/ssl/chrome_ssl_host_state_decisions.h"
75 #include "chrome/browser/ssl/chrome_ssl_host_state_decisions_factory.h"
74 #include "chrome/browser/ui/startup/startup_browser_creator.h" 76 #include "chrome/browser/ui/startup/startup_browser_creator.h"
75 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 77 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
76 #include "chrome/browser/webdata/web_data_service.h" 78 #include "chrome/browser/webdata/web_data_service.h"
77 #include "chrome/common/chrome_constants.h" 79 #include "chrome/common/chrome_constants.h"
78 #include "chrome/common/chrome_paths_internal.h" 80 #include "chrome/common/chrome_paths_internal.h"
79 #include "chrome/common/chrome_switches.h" 81 #include "chrome/common/chrome_switches.h"
80 #include "chrome/common/chrome_version_info.h" 82 #include "chrome/common/chrome_version_info.h"
81 #include "chrome/common/pref_names.h" 83 #include "chrome/common/pref_names.h"
82 #include "chrome/common/url_constants.h" 84 #include "chrome/common/url_constants.h"
83 #include "components/bookmarks/browser/bookmark_model.h" 85 #include "components/bookmarks/browser/bookmark_model.h"
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 1037
1036 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { 1038 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() {
1037 return GetExtensionSpecialStoragePolicy(); 1039 return GetExtensionSpecialStoragePolicy();
1038 } 1040 }
1039 1041
1040 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { 1042 content::PushMessagingService* ProfileImpl::GetPushMessagingService() {
1041 return gcm::GCMProfileServiceFactory::GetForProfile( 1043 return gcm::GCMProfileServiceFactory::GetForProfile(
1042 this)->push_messaging_service(); 1044 this)->push_messaging_service();
1043 } 1045 }
1044 1046
1047 content::SSLHostStateDecisions* ProfileImpl::GetSSLHostStateDecisions() {
1048 return ChromeSSLHostStateDecisionsFactory::GetForProfile(this);
1049 }
1050
1045 bool ProfileImpl::IsSameProfile(Profile* profile) { 1051 bool ProfileImpl::IsSameProfile(Profile* profile) {
1046 if (profile == static_cast<Profile*>(this)) 1052 if (profile == static_cast<Profile*>(this))
1047 return true; 1053 return true;
1048 Profile* otr_profile = off_the_record_profile_.get(); 1054 Profile* otr_profile = off_the_record_profile_.get();
1049 return otr_profile && profile == otr_profile; 1055 return otr_profile && profile == otr_profile;
1050 } 1056 }
1051 1057
1052 Time ProfileImpl::GetStartTime() const { 1058 Time ProfileImpl::GetStartTime() const {
1053 return start_time_; 1059 return start_time_;
1054 } 1060 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 ProfileImpl::CreateDomainReliabilityMonitor() { 1332 ProfileImpl::CreateDomainReliabilityMonitor() {
1327 domain_reliability::DomainReliabilityService* service = 1333 domain_reliability::DomainReliabilityService* service =
1328 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1334 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1329 GetForBrowserContext(this); 1335 GetForBrowserContext(this);
1330 if (!service) 1336 if (!service)
1331 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1337 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1332 1338
1333 return service->CreateMonitor( 1339 return service->CreateMonitor(
1334 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1340 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
1335 } 1341 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698