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

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: forward-declare booleanprefmember 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
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..518d5fa9d89cc74b03b1ec690e5deed3d7b6ebeb 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -23,7 +23,7 @@
#include "net/http/http_cache.h"
OffTheRecordProfileIOData::Handle::Handle(Profile* profile)
- : io_data_(new OffTheRecordProfileIOData),
+ : io_data_(new OffTheRecordProfileIOData(profile)),
profile_(profile),
initialized_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -48,6 +48,8 @@ OffTheRecordProfileIOData::Handle::~Handle() {
++iter) {
iter->second->CleanupOnUIThread();
}
+
+ io_data_->Shutdown();
}
scoped_refptr<ChromeURLRequestContextGetter>
@@ -108,8 +110,8 @@ void OffTheRecordProfileIOData::Handle::LazyInitialize() const {
OffTheRecordProfileIOData::LazyParams::LazyParams() : io_thread(NULL) {}
OffTheRecordProfileIOData::LazyParams::~LazyParams() {}
-OffTheRecordProfileIOData::OffTheRecordProfileIOData()
- : ProfileIOData(true),
+OffTheRecordProfileIOData::OffTheRecordProfileIOData(Profile* profile)
+ : ProfileIOData(profile, true),
initialized_(false) {}
OffTheRecordProfileIOData::~OffTheRecordProfileIOData() {
STLDeleteValues(&app_http_factory_map_);
@@ -139,6 +141,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());

Powered by Google App Engine
This is Rietveld 408576698