| Index: components/security_interstitials/core/browser/resources/interstitial_v2.js
|
| diff --git a/components/security_interstitials/core/browser/resources/interstitial_v2.js b/components/security_interstitials/core/browser/resources/interstitial_v2.js
|
| index 4fa48eac865d91d45a46eb37c794bca79e03efa5..e9f0892e039423dcc0227cbfdee5fc42ea2eb958 100644
|
| --- a/components/security_interstitials/core/browser/resources/interstitial_v2.js
|
| +++ b/components/security_interstitials/core/browser/resources/interstitial_v2.js
|
| @@ -8,43 +8,6 @@
|
| var expandedDetails = false;
|
| var keyPressState = 0;
|
|
|
| -// Should match security_interstitials::SecurityInterstitialCommands
|
| -var CMD_DONT_PROCEED = 0;
|
| -var CMD_PROCEED = 1;
|
| -// Ways for user to get more information
|
| -var CMD_SHOW_MORE_SECTION = 2;
|
| -var CMD_OPEN_HELP_CENTER = 3;
|
| -var CMD_OPEN_DIAGNOSTIC = 4;
|
| -// Primary button actions
|
| -var CMD_RELOAD = 5;
|
| -var CMD_OPEN_DATE_SETTINGS = 6;
|
| -var CMD_OPEN_LOGIN = 7;
|
| -// Safe Browsing Extended Reporting
|
| -var CMD_DO_REPORT = 8;
|
| -var CMD_DONT_REPORT = 9;
|
| -var CMD_OPEN_REPORTING_PRIVACY = 10;
|
| -var CMD_OPEN_WHITEPAPER = 11;
|
| -// Report a phishing error.
|
| -var CMD_REPORT_PHISHING_ERROR = 12;
|
| -
|
| -/**
|
| - * A convenience method for sending commands to the parent page.
|
| - * @param {string} cmd The command to send.
|
| - */
|
| -function sendCommand(cmd) {
|
| -// <if expr="not is_ios">
|
| - window.domAutomationController.setAutomationId(1);
|
| - window.domAutomationController.send(cmd);
|
| -// </if>
|
| -// <if expr="is_ios">
|
| - // TODO(crbug.com/565877): Revisit message passing for WKWebView.
|
| - var iframe = document.createElement('IFRAME');
|
| - iframe.setAttribute('src', 'js-command:' + cmd);
|
| - document.documentElement.appendChild(iframe);
|
| - iframe.parentNode.removeChild(iframe);
|
| -// </if>
|
| -}
|
| -
|
| /**
|
| * This allows errors to be skippped by typing a secret phrase into the page.
|
| * @param {string} e The key that was just pressed.
|
|
|