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

Unified Diff: chrome/browser/profiles/off_the_record_profile_io_data.cc

Issue 24153012: Fix cyclic dependency between ProfilePolicyConnector and PrefService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index dfcbd04dbfbe13f5108d44faec07f59d1953bffd..d209087cca9bd4feb28acfe36cdaf047fdc9dba0 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -137,6 +137,15 @@ OffTheRecordProfileIOData::Handle::CreateIsolatedAppRequestContextGetter(
return context;
}
+void OffTheRecordProfileIOData::Handle::ReleaseFromBrowserContextServices(
+ Profile* profile) const {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ if (!initialized_)
+ return;
+
+ io_data_->ReleaseFromBrowserContextServices(profile);
+}
+
void OffTheRecordProfileIOData::Handle::LazyInitialize() const {
if (initialized_)
return;
@@ -177,8 +186,6 @@ void OffTheRecordProfileIOData::InitializeInternal(
main_context->set_host_resolver(
io_thread_globals->host_resolver.get());
- main_context->set_cert_verifier(
- io_thread_globals->cert_verifier.get());
main_context->set_http_auth_handler_factory(
io_thread_globals->http_auth_handler_factory.get());
main_context->set_fraudulent_certificate_reporter(

Powered by Google App Engine
This is Rietveld 408576698