Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: chrome/browser/resources/backloader/web/cros_validator.js

Issue 10855239: Wired background loader component extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698