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

Unified Diff: chrome/browser/profiles/profile_impl_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/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 7de91a077041ed0fa94848be3c8dea1a2b26d82a..3e42113dc73610c6e6fa617add490b62b5b92910 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -25,7 +25,7 @@
#include "net/http/http_cache.h"
ProfileImplIOData::Handle::Handle(Profile* profile)
- : io_data_(new ProfileImplIOData),
+ : io_data_(new ProfileImplIOData(profile)),
profile_(profile),
initialized_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -48,6 +48,8 @@ ProfileImplIOData::Handle::~Handle() {
++iter) {
iter->second->CleanupOnUIThread();
}
+
+ io_data_->Shutdown();
}
void ProfileImplIOData::Handle::Init(const FilePath& cookie_path,
@@ -149,8 +151,8 @@ ProfileImplIOData::LazyParams::LazyParams()
io_thread(NULL) {}
ProfileImplIOData::LazyParams::~LazyParams() {}
-ProfileImplIOData::ProfileImplIOData()
- : ProfileIOData(false),
+ProfileImplIOData::ProfileImplIOData(Profile* profile)
+ : ProfileIOData(profile, false),
clear_local_state_on_exit_(false) {}
ProfileImplIOData::~ProfileImplIOData() {
STLDeleteValues(&app_http_factory_map_);
@@ -189,6 +191,7 @@ void ProfileImplIOData::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());
media_request_context_->set_network_delegate(network_delegate_.get());

Powered by Google App Engine
This is Rietveld 408576698