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

Unified Diff: google_apis/gaia/gaia_auth_util.h

Issue 166433005: Add URL parameter so that /ListAccounts returns valid json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ListAccount strings in tests Created 6 years, 10 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
Index: google_apis/gaia/gaia_auth_util.h
diff --git a/google_apis/gaia/gaia_auth_util.h b/google_apis/gaia/gaia_auth_util.h
index f0b5e5de76c1db2e593b2eddf6c5e1797e8d3f80..68f75b53ff22e54dffb0ea761e5f135f181b2f77 100644
--- a/google_apis/gaia/gaia_auth_util.h
+++ b/google_apis/gaia/gaia_auth_util.h
@@ -6,6 +6,7 @@
#define GOOGLE_APIS_GAIA_GAIA_AUTH_UTIL_H_
#include <string>
+#include <utility>
#include <vector>
class GURL;
@@ -35,11 +36,13 @@ std::string ExtractDomainName(const std::string& email);
bool IsGaiaSignonRealm(const GURL& url);
-// Parses JSON data returned by /ListAccounts call, returns vector of
-// accounts (email addresses). If there an error parsing the JSON, then
-// false is returned.
-bool ParseListAccountsData(const std::string& data,
- std::vector<std::string>* accounts);
+// Parses JSON data returned by /ListAccounts call, returning a vector of
+// email/valid pairs. An email addresses is considered valid if a passive
+// login would succeed (i.e. the user does not need to reauthenticate).
+// If there an error parsing the JSON, then false is returned.
+bool ParseListAccountsData(
+ const std::string& data,
+ std::vector<std::pair<std::string, bool> >* accounts);
} // namespace gaia
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698