| 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">
|
| +})();
|
|
|