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

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

Issue 1004753004: cros: Port SAML support to webview sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle loadabort to fix test Created 5 years, 9 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') | google_apis/gaia/fake_gaia.h » ('j') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..012c17f4b46113167775de2ed01b1952d4939591
--- /dev/null
+++ b/chrome/browser/resources/gaia_auth_host/webview_saml_injected.js
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// 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">
+})();
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/saml_handler.js ('k') | google_apis/gaia/fake_gaia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698