| 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 ChromeOSValidator() { | 5 function ChromeOSValidator() { |
| 6 } | 6 } |
| 7 | 7 |
| 8 ChromeOSValidator.getInstance = function() { | 8 ChromeOSValidator.getInstance = function() { |
| 9 if (!ChromeOSValidator.instance_) { | 9 if (!ChromeOSValidator.instance_) { |
| 10 ChromeOSValidator.instance_ = new ChromeOSValidator(); | 10 ChromeOSValidator.instance_ = new ChromeOSValidator(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 this.callback_(msg.os == 'ChromeOS'); | 39 this.callback_(msg.os == 'ChromeOS'); |
| 40 } else { | 40 } else { |
| 41 console.log('#### ChromeOSValidator.onMessage: unknown message'); | 41 console.log('#### ChromeOSValidator.onMessage: unknown message'); |
| 42 if (this.callback_) | 42 if (this.callback_) |
| 43 this.callback_(false); | 43 this.callback_(false); |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 ChromeOSValidator.getInstance().initialize(); | 48 ChromeOSValidator.getInstance().initialize(); |
| OLD | NEW |