| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |