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

Unified Diff: google_apis/gaia/oauth2_api_call_flow.cc

Issue 1330443002: Report data usage UMA for Chrome services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewArchServices
Patch Set: Addressing sclittle's comments. Created 5 years, 3 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: google_apis/gaia/oauth2_api_call_flow.cc
diff --git a/google_apis/gaia/oauth2_api_call_flow.cc b/google_apis/gaia/oauth2_api_call_flow.cc
index 19d5b06e77bc537edfbe5cbbfdf879651c2e1089..165aefd237e7f837676d61ed0d837d761c08ed32 100644
--- a/google_apis/gaia/oauth2_api_call_flow.cc
+++ b/google_apis/gaia/oauth2_api_call_flow.cc
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/strings/stringprintf.h"
+#include "components/data_use_measurement/core/data_use_user_data.h"
#include "google_apis/gaia/gaia_urls.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
@@ -82,7 +83,8 @@ scoped_ptr<URLFetcher> OAuth2ApiCallFlow::CreateURLFetcher(
net::URLFetcher::RequestType request_type = GetRequestTypeForBody(body);
scoped_ptr<URLFetcher> result =
net::URLFetcher::Create(0, CreateApiCallUrl(), request_type, this);
-
+ data_use_measurement::DataUseUserData::AttachToFetcher(
+ result.get(), data_use_measurement::DataUseUserData::GOOGLE_APIS);
result->SetRequestContext(context);
result->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES);

Powered by Google App Engine
This is Rietveld 408576698