| 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 Code injected into Gaia sign in page for inline sign in flow. | 6 * @fileoverview Code injected into Gaia sign in page for inline sign in flow. |
| 7 * On load stop, it receives a message from the embedder extension with a | 7 * On load stop, it receives a message from the embedder extension with a |
| 8 * JavaScript reference to the embedder window. Then upon submit of the sign | 8 * JavaScript reference to the embedder window. Then upon submit of the sign |
| 9 * in form, it posts the username and password to the embedder window. | 9 * in form, it posts the username and password to the embedder window. |
| 10 * Prototype Only. | 10 * Prototype Only. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 chooseWhatToSync: chooseWhatToSync}; | 37 chooseWhatToSync: chooseWhatToSync}; |
| 38 | 38 |
| 39 extWindow.postMessage(msg, 'chrome://chrome-signin'); | 39 extWindow.postMessage(msg, 'chrome://chrome-signin'); |
| 40 console.log('Credentials sent'); | 40 console.log('Credentials sent'); |
| 41 | 41 |
| 42 return; | 42 return; |
| 43 }; | 43 }; |
| 44 // Overrides the submit handler for the gaia login form. | 44 // Overrides the submit handler for the gaia login form. |
| 45 gaiaLoginForm.onsubmit = onLoginSubmit; | 45 gaiaLoginForm.onsubmit = onLoginSubmit; |
| 46 })(); | 46 })(); |
| OLD | NEW |