Chromium Code Reviews| Index: components/signin/core/browser/gaia_cookie_manager_service.cc |
| diff --git a/components/signin/core/browser/gaia_cookie_manager_service.cc b/components/signin/core/browser/gaia_cookie_manager_service.cc |
| index a3aa65fe8ee2c95e6fe3d8ab3455e108b0d0a89c..60d237efb28ae19c6d241ab912a2144e9bbe702b 100644 |
| --- a/components/signin/core/browser/gaia_cookie_manager_service.cc |
| +++ b/components/signin/core/browser/gaia_cookie_manager_service.cc |
| @@ -25,6 +25,7 @@ |
| #include "google_apis/gaia/oauth2_token_service.h" |
| #include "net/base/load_flags.h" |
| #include "net/http/http_status_code.h" |
| +#include "net/traffic_annotation/network_traffic_annotation.h" |
| #include "net/url_request/url_fetcher.h" |
| #include "net/url_request/url_fetcher_delegate.h" |
| @@ -213,8 +214,33 @@ void GaiaCookieManagerService::ExternalCcResultFetcher:: |
| std::unique_ptr<net::URLFetcher> |
| GaiaCookieManagerService::ExternalCcResultFetcher::CreateFetcher( |
| const GURL& url) { |
| - std::unique_ptr<net::URLFetcher> fetcher = |
| - net::URLFetcher::Create(0, url, net::URLFetcher::GET, this); |
| + net::NetworkTrafficAnnotationTag traffic_annotation = |
| + net::DefineNetworkTrafficAnnotation( |
| + "gaia_cookie_manager_external_cc_result", R"( |
| + semantics { |
| + sender: "Gaia Cookie Manager" |
| + description: |
| + "This request is used by the GaiaCookieManager when adding an " |
| + "account to the Gaia cookies to check the server connection " |
|
msramek
2017/05/03 16:22:34
I'm not sure "Gaia" is understandable to an extern
msarda
2017/05/09 08:35:42
We already use GAIA/Gaia in a lot of places in Chr
msramek
2017/05/09 09:09:45
Right, but we don't use it in HC articles or the p
msarda
2017/05/09 09:17:31
I did not know this will be used in "HC" articles
Ramin Halavati
2017/05/09 09:35:05
Yes Mihai, as Martin mentioned, this data is also
|
| + "state." |
|
msramek
2017/05/03 16:22:34
Optional: Why do we need to know the server connec
msarda
2017/05/09 08:35:42
It looks like this is an optional request that all
Ramin Halavati
2017/05/09 09:35:05
Acknowledged.
|
| + trigger: |
| + "This is used only once in the first merge session flow by the " |
| + "GaiaCookieManager. The value of the first fetch is stored for " |
| + "future uses." |
| + data: "None." |
| + destination: GOOGLE_OWNED_SERVICE |
| + } |
| + policy { |
| + cookies_allowed: false |
| + setting: "This feature cannot be disabled in settings." |
| + policy_exception_justification: |
| + "Not implemented. Disabling GaiaCookieManager would break " |
| + "features that depend on it (like account consistency and " |
| + "support for child accounts). It makes sense to control top " |
| + "level features that use the GaiaCookieManager." |
| + })"); |
| + std::unique_ptr<net::URLFetcher> fetcher = net::URLFetcher::Create( |
| + 0, url, net::URLFetcher::GET, this, traffic_annotation); |
| fetcher->SetRequestContext(helper_->request_context()); |
| fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | |
| net::LOAD_DO_NOT_SAVE_COOKIES); |