| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 function Authenticator() { | 5 function Authenticator() { |
| 6 } | 6 } |
| 7 | 7 |
| 8 Authenticator.getInstance = function() { | 8 Authenticator.getInstance = function() { |
| 9 if (!Authenticator.instance_) { | 9 if (!Authenticator.instance_) { |
| 10 Authenticator.instance_ = new Authenticator(); | 10 Authenticator.instance_ = new Authenticator(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } else { | 110 } else { |
| 111 console.log('#### Authenticator.onMessage: unexpected attemptToken!?'); | 111 console.log('#### Authenticator.onMessage: unexpected attemptToken!?'); |
| 112 } | 112 } |
| 113 } else { | 113 } else { |
| 114 console.log('#### Authenticator.onMessage: unknown message + origin!?'); | 114 console.log('#### Authenticator.onMessage: unknown message + origin!?'); |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 Authenticator.getInstance().initialize(); | 119 Authenticator.getInstance().initialize(); |
| 120 | |
| OLD | NEW |