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

Unified Diff: components/update_client/utils.cc

Issue 2491733002: Add data usage tracking for cloud print, update client service and search provide logos (Closed)
Patch Set: Rebased 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
« no previous file with comments | « components/update_client/url_fetcher_downloader.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 8d92dff3f78684b63005271f892b530593fdaca0..6af11aebf1834417eeeb16a72619146c24e01e42 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -26,6 +26,7 @@
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "components/crx_file/id_util.h"
+#include "components/data_use_measurement/core/data_use_user_data.h"
#include "components/update_client/configurator.h"
#include "components/update_client/crx_update_item.h"
#include "components/update_client/update_client.h"
@@ -188,6 +189,8 @@ std::unique_ptr<net::URLFetcher> SendProtocolRequest(
if (!url_fetcher.get())
return url_fetcher;
+ data_use_measurement::DataUseUserData::AttachToFetcher(
+ url_fetcher.get(), data_use_measurement::DataUseUserData::UPDATE_CLIENT);
url_fetcher->SetUploadData("application/xml", protocol_request);
url_fetcher->SetRequestContext(url_request_context_getter);
url_fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
« no previous file with comments | « components/update_client/url_fetcher_downloader.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698