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

Side by Side Diff: google_apis/gaia/oauth2_mint_token_flow.cc

Issue 2888053003: Network traffic annotation added to OAuth2ApiCallFlow and its subclasses. (Closed)
Patch Set: Merge branch 'updating_nta' into an_oauth2_api_call_flow 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "google_apis/gaia/oauth2_mint_token_flow.h" 5 #include "google_apis/gaia/oauth2_mint_token_flow.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 detail, base::ASCIIToUTF16(kDetailSeparators), 272 detail, base::ASCIIToUTF16(kDetailSeparators),
273 base::TRIM_WHITESPACE, base::SPLIT_WANT_NONEMPTY); 273 base::TRIM_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
274 issue_advice->push_back(entry); 274 issue_advice->push_back(entry);
275 } 275 }
276 276
277 if (!success) 277 if (!success)
278 issue_advice->clear(); 278 issue_advice->clear();
279 279
280 return success; 280 return success;
281 } 281 }
282
283 net::PartialNetworkTrafficAnnotationTag
284 OAuth2MintTokenFlow::GetNetworkTrafficAnnotationTag() {
285 return net::DefinePartialNetworkTrafficAnnotation("oauth2_mint_token_flow",
286 "oauth2_api_call_flow", R"(
287 semantics {
288 sender: "Chrome Identity API"
289 description:
290 "Requests a token from gaia allowing an app or extension to act as "
291 "the user when calling other google APIs."
292 trigger: "API call from the app/extension"
293 data:
294 "User's login token, the identity of a chrome app/extension, and a "
295 "list of oauth scopes requested by the app/extension."
296 destination: GOOGLE_OWNED_SERVICE
297 }
298 policy {
299 setting: "..."
300 chrome_policy {
301 [POLICY_NAME] {
302 policy_options {mode: MANDATORY/RECOMMENDED/UNSET}
303 [POLICY_NAME]: ... //(value to disable it)
304 }
305 }
306 policy_exception_justification: "..."
307 })");
308 }
Roger Tawa OOO till Jul 10th 2017/05/26 13:46:11 This is not controllable by policy. Although if y
Ramin Halavati 2017/05/29 05:30:52 Done, please verify.
OLDNEW
« google_apis/gaia/oauth2_api_call_flow.cc ('K') | « google_apis/gaia/oauth2_mint_token_flow.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698