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

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

Issue 2462983003: Move data use measurement to DataUseNetworkDelegate (Closed)
Patch Set: Move DataUseMeasurement to core Created 4 years, 1 month 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 63a2cbd13bf18b36a4c7a2c689536c72222b215d..34bc71fd6b03a33c443378333f8468b6ac5d7deb 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -46,6 +46,8 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/core/browser/data_store_impl.h"
+#include "components/data_use_measurement/content/data_use_measurement_util.h"
+#include "components/data_use_measurement/core/data_use_measurement.h"
#include "components/domain_reliability/monitor.h"
#include "components/net_log/chrome_net_log.h"
#include "components/prefs/json_pref_store.h"
@@ -484,7 +486,9 @@ void ProfileImplIOData::InitializeInternal(
main_context_storage->set_network_delegate(
data_reduction_proxy_io_data()->CreateNetworkDelegate(
io_thread_globals->data_use_ascriber->CreateNetworkDelegate(
- std::move(chrome_network_delegate)),
+ std::move(chrome_network_delegate),
+ data_use_measurement::GetIsUserInitiatedRequestCallback(),
+ io_thread->GetMetricsDataUseForwarder()),
true));
main_context->set_host_resolver(

Powered by Google App Engine
This is Rietveld 408576698