| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | 5 <include src="post_message_channel.js"> |
| 6 | 6 <include src="../gaia_auth/saml_injected.js"> |
| 7 /** | |
| 8 * Global injection guard that starts as undefined and sets to true after the | |
| 9 * first run. This is for webview.executeScript injection where the execution | |
| 10 * environment remains the same for multiple injections. | |
| 11 * @type {boolean} | |
| 12 */ | |
| 13 var samlInjectedInitialized; | |
| 14 | |
| 15 (function() { | |
| 16 if (samlInjectedInitialized) | |
| 17 return; | |
| 18 samlInjectedInitialized = true; | |
| 19 | |
| 20 <include src="post_message_channel.js"> | |
| 21 <include src="../gaia_auth/saml_injected.js"> | |
| 22 })(); | |
| OLD | NEW |