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

Unified Diff: google_apis/gaia/oauth2_api_call_flow.cc

Issue 2888053003: Network traffic annotation added to OAuth2ApiCallFlow and its subclasses. (Closed)
Patch Set: Annotations updated. Created 3 years, 6 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
« no previous file with comments | « google_apis/gaia/oauth2_api_call_flow.h ('k') | google_apis/gaia/oauth2_api_call_flow_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e3d40f0e037e9c2a2164e764cb04bb56d758effe..3292888b0b292119428f328675694e812e3709c9 100644
--- a/google_apis/gaia/oauth2_api_call_flow.cc
+++ b/google_apis/gaia/oauth2_api_call_flow.cc
@@ -79,8 +79,14 @@ std::unique_ptr<URLFetcher> OAuth2ApiCallFlow::CreateURLFetcher(
const std::string& access_token) {
std::string body = CreateApiCallBody();
net::URLFetcher::RequestType request_type = GetRequestTypeForBody(body);
- std::unique_ptr<URLFetcher> result =
- net::URLFetcher::Create(0, CreateApiCallUrl(), request_type, this);
+ net::NetworkTrafficAnnotationTag traffic_annotation =
+ CompleteNetworkTrafficAnnotation("oauth2_api_call_flow",
+ GetNetworkTrafficAnnotationTag(), R"(
+ policy {
+ cookies_allowed: false
+ })");
+ std::unique_ptr<URLFetcher> result = net::URLFetcher::Create(
+ 0, CreateApiCallUrl(), request_type, this, traffic_annotation);
gaia::MarkURLFetcherAsGaia(result.get());
result->SetRequestContext(context);
« no previous file with comments | « google_apis/gaia/oauth2_api_call_flow.h ('k') | google_apis/gaia/oauth2_api_call_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698