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

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

Issue 10108026: Transmit a X-Chrome-UMA-Enabled bit to Google domains from clients that have UMA enabled. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: prefmember for metrics enabled Created 8 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_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index f1451544737f6d4dfc4d05aa1e665fade4a6f288..84910bb348ce521b63b79d4358497ce7f4d58d83 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -439,7 +439,10 @@ void ProfileIOData::LazyInitialize() const {
url_blacklist_manager_.get(),
profile_params_->profile,
profile_params_->cookie_settings,
- &enable_referrers_));
+ profile_params_->is_incognito ? ChromeNetworkDelegate::INCOGNITO :
+ ChromeNetworkDelegate::NORMAL,
+ &enable_referrers_,
+ &enable_metrics_));
fraudulent_certificate_reporter_.reset(
new chrome_browser_net::ChromeFraudulentCertificateReporter(
@@ -518,6 +521,7 @@ void ProfileIOData::ApplyProfileParamsToContext(
void ProfileIOData::ShutdownOnUIThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
enable_referrers_.Destroy();
+ enable_metrics_.Destroy();
clear_local_state_on_exit_.Destroy();
safe_browsing_enabled_.Destroy();
session_startup_pref_.Destroy();

Powered by Google App Engine
This is Rietveld 408576698