| Index: components/signin/core/browser/refresh_token_annotation_request.cc
|
| diff --git a/components/signin/core/browser/refresh_token_annotation_request.cc b/components/signin/core/browser/refresh_token_annotation_request.cc
|
| index 191dab8ebf42c126f388166400754f7fc5b5abde..b8f7a1d9cf988c74e3d0ac39049f48ff2b3e1932 100644
|
| --- a/components/signin/core/browser/refresh_token_annotation_request.cc
|
| +++ b/components/signin/core/browser/refresh_token_annotation_request.cc
|
| @@ -17,6 +17,7 @@
|
| #include "google_apis/gaia/gaia_constants.h"
|
| #include "google_apis/gaia/gaia_urls.h"
|
| #include "net/base/escape.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
|
|
| namespace {
|
| @@ -114,7 +115,28 @@ void RefreshTokenAnnotationRequest::OnGetTokenSuccess(
|
| const base::Time& expiration_time) {
|
| DCHECK(CalledOnValidThread());
|
| DVLOG(2) << "Got access token";
|
| - Start(request_context_getter_.get(), access_token);
|
| + net::NetworkTrafficAnnotationTag traffic_annotation =
|
| + net::DefineNetworkTrafficAnnotation("...", R"(
|
| + semantics {
|
| + sender: "..."
|
| + description: "..."
|
| + trigger: "..."
|
| + data: "..."
|
| + destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER/LOCAL
|
| + }
|
| + policy {
|
| + cookies_allowed: false/true
|
| + cookies_store: "..."
|
| + setting: "..."
|
| + chrome_policy {
|
| + [POLICY_NAME] {
|
| + policy_options {mode: MANDATORY/RECOMMENDED/UNSET}
|
| + [POLICY_NAME]: ... //(value to disable it)
|
| + }
|
| + }
|
| + policy_exception_justification: "..."
|
| + })");
|
| + Start(request_context_getter_.get(), access_token, traffic_annotation);
|
| }
|
|
|
| void RefreshTokenAnnotationRequest::OnGetTokenFailure(
|
|
|