| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Script to be injected into SAML provider pages, serving three main purposes: | 7 * Script to be injected into SAML provider pages, serving three main purposes: |
| 8 * 1. Signal hosting extension that an external page is loaded so that the | 8 * 1. Signal hosting extension that an external page is loaded so that the |
| 9 * UI around it should be changed accordingly; | 9 * UI around it should be changed accordingly; |
| 10 * 2. Provide an API via which the SAML provider can pass user credentials to | 10 * 2. Provide an API via which the SAML provider can pass user credentials to |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 } | 209 } |
| 210 | 210 |
| 211 var channel = Channel.create(); | 211 var channel = Channel.create(); |
| 212 channel.connect('injected'); | 212 channel.connect('injected'); |
| 213 channel.sendWithCallback({name: 'getSAMLFlag'}, | 213 channel.sendWithCallback({name: 'getSAMLFlag'}, |
| 214 onGetSAMLFlag.bind(undefined, channel)); | 214 onGetSAMLFlag.bind(undefined, channel)); |
| 215 | 215 |
| 216 var apiCallForwarder = new APICallForwarder(); | 216 var apiCallForwarder = new APICallForwarder(); |
| 217 apiCallForwarder.init(channel); | 217 apiCallForwarder.init(channel); |
| 218 })(); | 218 })(); |
| OLD | NEW |