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

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

Issue 10911283: Implement 'Do Not Track' header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 3 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/profiles/profile_io_data.h ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 078a62117c44829c97939aa1943597ade9fddca4..74f94d81938228a36127195cb3c02179c75ab86f 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -203,6 +203,12 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
proxy_config_service);
params->profile = profile;
profile_params_.reset(params.release());
+
+ ChromeNetworkDelegate::InitializePrefsOnUIThread(
+ &enable_referrers_,
+ &enable_do_not_track_,
+ pref_service);
+
#if defined(ENABLE_PRINTING)
printing_enabled_.Init(prefs::kPrintingEnabled, pref_service, NULL);
printing_enabled_.MoveToThread(BrowserThread::IO);
@@ -531,6 +537,7 @@ void ProfileIOData::LazyInitialize() const {
profile_params_->profile,
profile_params_->cookie_settings,
&enable_referrers_,
+ &enable_do_not_track_,
load_time_stats_));
fraudulent_certificate_reporter_.reset(
@@ -629,6 +636,7 @@ void ProfileIOData::SetUpJobFactoryDefaults(
void ProfileIOData::ShutdownOnUIThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
enable_referrers_.Destroy();
+ enable_do_not_track_.Destroy();
#if !defined(OS_CHROMEOS)
enable_metrics_.Destroy();
#endif
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698