Chromium Code Reviews| Index: chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc |
| diff --git a/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc b/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc |
| index 28fbabb71b72bf3bb45ba1ac74d4d877eddb97f4..b84054fe50ad1a12436ee6ab4f1df7134263e935 100644 |
| --- a/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc |
| +++ b/chrome/browser/supervised_user/child_accounts/family_info_fetcher.cc |
| @@ -14,6 +14,7 @@ |
| #include "components/data_use_measurement/core/data_use_user_data.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_request_status.h" |
| #include "url/gurl.h" |
| @@ -171,7 +172,29 @@ void FamilyInfoFetcher::OnGetTokenSuccess( |
| GURL url = kids_management_api::GetURL(request_path_); |
| const int id = 0; |
| - url_fetcher_ = net::URLFetcher::Create(id, url, net::URLFetcher::GET, this); |
| + net::NetworkTrafficAnnotationTag traffic_annotation = |
| + net::DefineNetworkTrafficAnnotation("...", R"( |
|
Bernhard Bauer
2017/03/14 10:02:48
family_info
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + semantics { |
| + sender: "..." |
|
Bernhard Bauer
2017/03/14 10:02:48
supervised_users
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + description: "..." |
|
Bernhard Bauer
2017/03/14 10:02:47
Fetches information about the user's family group
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + trigger: "..." |
|
Bernhard Bauer
2017/03/14 10:02:48
Triggered in regular intervals to update profile i
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + data: "..." |
|
Bernhard Bauer
2017/03/14 10:02:47
The request is authenticated with an OAuth2 access
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER |
|
Bernhard Bauer
2017/03/14 10:02:47
GOOGLE_OWNED_SERVICE
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + } |
| + policy { |
| + cookies_allowed: false/true |
|
Bernhard Bauer
2017/03/14 10:02:47
false
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + cookies_store: "..." |
|
Bernhard Bauer
2017/03/14 10:02:48
user
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + setting: "..." |
|
Bernhard Bauer
2017/03/14 10:02:48
This feature is only enabled for child accounts. I
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + chrome_policy { |
| + [POLICY_NAME] { |
|
Bernhard Bauer
2017/03/14 10:02:48
RestrictSigninToPattern
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + policy_options {mode: MANDATORY/RECOMMENDED/UNSET} |
|
Bernhard Bauer
2017/03/14 10:02:48
MANDATORY
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + [POLICY_NAME]: ... //(value to disable it) |
|
Bernhard Bauer
2017/03/14 10:02:48
"*@manageddomain.com"
Ramin Halavati
2017/03/14 10:56:19
Done.
|
| + } |
| + } |
| + policy_exception_justification: "..." |
| + })"); |
| + url_fetcher_ = net::URLFetcher::Create(id, url, net::URLFetcher::GET, this, |
| + traffic_annotation); |
| data_use_measurement::DataUseUserData::AttachToFetcher( |
| url_fetcher_.get(), |