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

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

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 8 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
« no previous file with comments | « chrome/browser/prefs/pref_member.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dc2c66666d9fd0b74ab66d6cfed50013645bd675..af07f6b4fcbc56f45e75d7edb8c526615b7fd3e1 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -48,6 +48,8 @@ OffTheRecordProfileIOData::Handle::~Handle() {
++iter) {
iter->second->CleanupOnUIThread();
}
+
+ io_data_->ShutdownOnUIThread();
}
scoped_refptr<ChromeURLRequestContextGetter>
@@ -101,6 +103,8 @@ OffTheRecordProfileIOData::Handle::GetIsolatedAppRequestContextGetter(
void OffTheRecordProfileIOData::Handle::LazyInitialize() const {
if (!initialized_) {
InitializeProfileParams(profile_, &io_data_->lazy_params_->profile_params);
+ ChromeNetworkDelegate::InitializeReferrersEnabled(
+ io_data_->enable_referrers(), profile_->GetPrefs());
initialized_ = true;
}
}
@@ -139,6 +143,7 @@ void OffTheRecordProfileIOData::LazyInitializeInternal() const {
network_delegate_.reset(new ChromeNetworkDelegate(
io_thread_globals->extension_event_router_forwarder.get(),
profile_params.profile_id,
+ enable_referrers(),
profile_params.protocol_handler_registry));
main_request_context_->set_network_delegate(network_delegate_.get());
« no previous file with comments | « chrome/browser/prefs/pref_member.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698