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); |