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

Unified Diff: components/security_interstitials/core/browser/resources/interstitial_v2.js

Issue 2617823002: GRIT: put <if> and <include> behind comments in .js files to make syntactically valid JS (Closed)
Patch Set: add dep Created 3 years, 11 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 | « components/neterror/resources/neterror.js ('k') | content/browser/resources/gpu/gpu_internals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d4359be4f8133619ccb274d1b0545e3a5a44e453..e46279d279ea39742643b81fa360ec1c5e1572dd 100644
--- a/components/security_interstitials/core/browser/resources/interstitial_v2.js
+++ b/components/security_interstitials/core/browser/resources/interstitial_v2.js
@@ -32,17 +32,17 @@ var CMD_REPORT_PHISHING_ERROR = 12;
* @param {string} cmd The command to send.
*/
function sendCommand(cmd) {
-<if expr="not is_ios">
+// <if expr="not is_ios">
window.domAutomationController.setAutomationId(1);
window.domAutomationController.send(cmd);
-</if>
-<if expr="is_ios">
+// </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>
+// </if>
}
/**
« no previous file with comments | « components/neterror/resources/neterror.js ('k') | content/browser/resources/gpu/gpu_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698