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

Unified Diff: components/ntp_snippets/remote/json_request.cc

Issue 2685523002: [Remote suggestions] Measure separate data use for JSONs and thumbnails (Closed)
Patch Set: Comments #1 Created 3 years, 10 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: components/ntp_snippets/remote/json_request.cc
diff --git a/components/ntp_snippets/remote/json_request.cc b/components/ntp_snippets/remote/json_request.cc
index 44b59035fc77e61e821bab7aca7fe0f8d5684c0f..ad14bbd56b36e1d5b372d2f7d985d6b103835796 100644
--- a/components/ntp_snippets/remote/json_request.cc
+++ b/components/ntp_snippets/remote/json_request.cc
@@ -439,7 +439,8 @@ std::unique_ptr<net::URLFetcher> JsonRequest::Builder::BuildURLFetcher(
url_fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES);
data_use_measurement::DataUseUserData::AttachToFetcher(
- url_fetcher.get(), data_use_measurement::DataUseUserData::NTP_SNIPPETS);
+ url_fetcher.get(),
+ data_use_measurement::DataUseUserData::NTP_SNIPPETS_SUGGESTIONS);
url_fetcher->SetExtraRequestHeaders(headers);
url_fetcher->SetUploadData("application/json", body);

Powered by Google App Engine
This is Rietveld 408576698