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

Unified Diff: mojo/services/authentication/public/interfaces/authentication.mojom

Issue 1163483004: Make the authentication service remember selected usernames. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | services/authenticating_url_loader/authenticating_url_loader_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/authentication/public/interfaces/authentication.mojom
diff --git a/mojo/services/authentication/public/interfaces/authentication.mojom b/mojo/services/authentication/public/interfaces/authentication.mojom
index a69e7de1a6853fd4063327b18ceca504710ba8cd..0bd56d653ce05b7d126bbc65ff529d4bf43d8671 100644
--- a/mojo/services/authentication/public/interfaces/authentication.mojom
+++ b/mojo/services/authentication/public/interfaces/authentication.mojom
@@ -11,8 +11,10 @@ module authentication;
interface AuthenticationService {
// Requests a Google account to use. In case of success, error will be null.
// In case of error, username will be null and error will contain a
- // description of the error.
- SelectAccount() => (string? username, string? error);
+ // description of the error. If |return_last_selected| is true and the client
+ // application already selected an account, the same account will be returned
+ // without user intervention.
+ SelectAccount(bool return_last_selected) => (string? username, string? error);
// Requests an oauth2 token for the given Google account with the given
// scopes. In case of error, username will be null and error will contain a
« no previous file with comments | « no previous file | services/authenticating_url_loader/authenticating_url_loader_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698