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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 src="post_message_channel.js"> 5 <include src="post_message_channel.js">
6 6
7 /** 7 /**
8 * @fileoverview Saml support for webview based auth. 8 * @fileoverview Saml support for webview based auth.
9 */ 9 */
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 /** 192 /**
193 * Returns the Saml API password bytes. 193 * Returns the Saml API password bytes.
194 * @return {string} 194 * @return {string}
195 */ 195 */
196 get apiPasswordBytes() { 196 get apiPasswordBytes() {
197 return this.apiPasswordBytes_; 197 return this.apiPasswordBytes_;
198 }, 198 },
199 199
200 /** 200 /**
201 * Returns the first scraped password if any, or an empty string otherwise.
202 * @return {string}
203 */
204 get firstScrapedPassword() {
205 var scraped = this.getConsolidatedScrapedPasswords_();
206 return scraped.length ? scraped[0] : '';
207 },
208
209 /**
201 * Returns the number of scraped passwords. 210 * Returns the number of scraped passwords.
202 * @return {number} 211 * @return {number}
203 */ 212 */
204 get scrapedPasswordCount() { 213 get scrapedPasswordCount() {
205 return this.getConsolidatedScrapedPasswords_().length; 214 return this.getConsolidatedScrapedPasswords_().length;
206 }, 215 },
207 216
208 /** 217 /**
209 * Gets the de-duped scraped passwords. 218 * Gets the de-duped scraped passwords.
210 * @return {Array<string>} 219 * @return {Array<string>}
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 461
453 onGetSAMLFlag_: function(channel, msg) { 462 onGetSAMLFlag_: function(channel, msg) {
454 return this.isSamlPage_; 463 return this.isSamlPage_;
455 }, 464 },
456 }; 465 };
457 466
458 return { 467 return {
459 SamlHandler: SamlHandler 468 SamlHandler: SamlHandler
460 }; 469 };
461 }); 470 });
OLDNEW
« 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