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

Unified Diff: chrome/browser/printing/cloud_print/privet_url_fetcher.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 | « chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc ('k') | chrome/service/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/cloud_print/privet_url_fetcher.cc
diff --git a/chrome/browser/printing/cloud_print/privet_url_fetcher.cc b/chrome/browser/printing/cloud_print/privet_url_fetcher.cc
index 1fdccbdae7370cfedfd5e88589026eeb71ba7a02..1135e216133826b788be7b05e85ddfc6662b6ecd 100644
--- a/chrome/browser/printing/cloud_print/privet_url_fetcher.cc
+++ b/chrome/browser/printing/cloud_print/privet_url_fetcher.cc
@@ -21,6 +21,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/printing/cloud_print/privet_constants.h"
+#include "components/data_use_measurement/core/data_use_user_data.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
@@ -150,6 +151,9 @@ void PrivetURLFetcher::Try() {
if (tries_ <= max_retries_) {
DVLOG(1) << "Attempt: " << tries_;
url_fetcher_ = net::URLFetcher::Create(url_, request_type_, this);
+ data_use_measurement::DataUseUserData::AttachToFetcher(
+ url_fetcher_.get(), data_use_measurement::DataUseUserData::CLOUD_PRINT);
+
// Privet requests are relevant to hosts on local network only.
url_fetcher_->SetLoadFlags(
url_fetcher_->GetLoadFlags() | net::LOAD_BYPASS_PROXY |
« no previous file with comments | « chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc ('k') | chrome/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698