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

Unified Diff: chrome/browser/resources/gaia_auth_host/webview_saml_injected.js

Issue 1066573003: cros: Use webview.addContentScripts for new Gaia SAML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview-content-script-incognito
Patch Set: rebase Created 5 years, 8 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 | « chrome/browser/resources/gaia_auth_host/saml_handler.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/gaia_auth_host/webview_saml_injected.js
diff --git a/chrome/browser/resources/gaia_auth_host/webview_saml_injected.js b/chrome/browser/resources/gaia_auth_host/webview_saml_injected.js
index 012c17f4b46113167775de2ed01b1952d4939591..84dcb2a51c3365c5273b9c2b32a356bfb8a9d88c 100644
--- a/chrome/browser/resources/gaia_auth_host/webview_saml_injected.js
+++ b/chrome/browser/resources/gaia_auth_host/webview_saml_injected.js
@@ -2,21 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-'use strict';
-
-/**
- * Global injection guard that starts as undefined and sets to true after the
- * first run. This is for webview.executeScript injection where the execution
- * environment remains the same for multiple injections.
- * @type {boolean}
- */
-var samlInjectedInitialized;
-
-(function() {
- if (samlInjectedInitialized)
- return;
- samlInjectedInitialized = true;
-
- <include src="post_message_channel.js">
- <include src="../gaia_auth/saml_injected.js">
-})();
+<include src="post_message_channel.js">
+<include src="../gaia_auth/saml_injected.js">
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/saml_handler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698