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

Unified Diff: chrome/browser/resources/gaia_auth_host/saml_handler.js

Issue 1954453002: Skip the SAML confirm password screen when a single password is scraped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: xiyuan's comment Created 4 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 | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/gaia_auth_host/saml_handler.js
diff --git a/chrome/browser/resources/gaia_auth_host/saml_handler.js b/chrome/browser/resources/gaia_auth_host/saml_handler.js
index 70486c7e06457057d120cda06897182f992da68a..89935284e6fbdd9f51dfe408df5c5ea334c1078f 100644
--- a/chrome/browser/resources/gaia_auth_host/saml_handler.js
+++ b/chrome/browser/resources/gaia_auth_host/saml_handler.js
@@ -198,6 +198,15 @@ cr.define('cr.login', function() {
},
/**
+ * Returns the first scraped password if any, or an empty string otherwise.
+ * @return {string}
+ */
+ get firstScrapedPassword() {
+ var scraped = this.getConsolidatedScrapedPasswords_();
+ return scraped.length ? scraped[0] : '';
+ },
+
+ /**
* Returns the number of scraped passwords.
* @return {number}
*/
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698