Skip to content
Snippets Groups Projects
Commit 34b0ef63 authored by Michael Slutskii's avatar Michael Slutskii Committed by Chromium LUCI CQ
Browse files

Delete "confirmPasswordCallback"

The corresponding logic was moved to gaia_screen_handler,
so this code currently doesn't do anything.

Bug: 377281580
Change-Id: I171583e8fd15150ff2cc70c296e6b84e58975e4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5987875


Reviewed-by: default avatarAndrey Davydov <andreydav@google.com>
Commit-Queue: Michael Slutskii <slutskii@google.com>
Cr-Commit-Position: refs/heads/main@{#1378984}
parent 2b3332f9
No related branches found
No related tags found
No related merge requests found
......@@ -177,8 +177,6 @@ export const SUPPORTED_PARAMS = [
// window.
'clientId', // Chrome client id.
'needPassword', // Whether the host is interested in getting a password.
// If this set to |false|, |confirmPasswordCallback| is
// not called before dispatching |authCopleted|.
// Default is |true|.
'flow', // One of 'default', 'enterprise', or
// 'cfm' or 'enterpriseLicense'.
......@@ -443,7 +441,6 @@ export class Authenticator extends EventTarget {
this.clientId_ = null;
this.confirmPasswordCallback = null;
this.noPasswordCallback = null;
this.onePasswordCallback = null;
this.insecureContentBlockedCallback = null;
......@@ -1099,20 +1096,6 @@ export class Authenticator extends EventTarget {
this.webview_.contentWindow.postMessage(payload, currentUrl);
}
/**
* Invoked by the hosting page to verify the Saml password.
*/
verifyConfirmedPassword(password) {
if (!this.samlHandler_.verifyConfirmedPassword(password)) {
this.confirmPasswordCallback(
this.email_, this.samlHandler_.scrapedPasswordCount);
return;
}
this.password_ = password;
this.onAuthCompleted_();
}
/**
* Check Saml flow and start password confirmation flow if needed.
* Otherwise, continue with auto completion.
......@@ -1192,14 +1175,6 @@ export class Authenticator extends EventTarget {
this.onAuthCompleted_();
return;
}
if (this.confirmPasswordCallback) {
// Confirm scraped password. The flow follows in
// verifyConfirmedPassword.
this.confirmPasswordCallback(
this.email_, this.samlHandler_.scrapedPasswordCount);
return;
}
}
this.onAuthCompleted_();
......
......@@ -515,14 +515,6 @@ import {WebviewEventManager} from './webview_event_manager.js';
this.urlParameterToAutofillSAMLUsername = null;
}
/**
* Check whether the given |password| is in the scraped passwords.
* @return {boolean} True if the |password| is found.
*/
verifyConfirmedPassword(password) {
return this.getConsolidatedScrapedPasswords_().indexOf(password) >= 0;
}
/**
* Check that last navigation was aborted intentionally. It will be
* continued later, so the abort event can be ignored.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment