OLD | NEW |
---|---|
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 Loading... | |
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( | |
286 "oauth2_mint_token_flow", "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" | |
msramek
2017/06/28 08:40:55
nit: Period at the end.
Ramin Halavati
2017/06/28 09:21:29
Done.
| |
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 "This feature cannot be disabled by settings, however the request is " | |
301 "made only for signed-in users." | |
302 chrome_policy { | |
303 SigninAllowed { | |
304 policy_options {mode: MANDATORY} | |
305 SigninAllowed: false | |
306 } | |
307 } | |
308 })"); | |
309 } | |
OLD | NEW |