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

Side by Side Diff: chrome/browser/resources/md_extensions/item_source.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Closure compiler won't let this be declared inside cr.define(). 5 // Closure compiler won't let this be declared inside cr.define().
6 /** @enum {string} */ 6 /** @enum {string} */
7 var SourceType = { 7 var SourceType = {
8 WEBSTORE: 'webstore', 8 WEBSTORE: 'webstore',
9 POLICY: 'policy', 9 POLICY: 'policy',
10 SIDELOADED: 'sideloaded', 10 SIDELOADED: 'sideloaded',
(...skipping 29 matching lines...) Expand all
40 case SourceType.SIDELOADED: 40 case SourceType.SIDELOADED:
41 return loadTimeData.getString('itemSourceSideloaded'); 41 return loadTimeData.getString('itemSourceSideloaded');
42 case SourceType.UNPACKED: 42 case SourceType.UNPACKED:
43 return loadTimeData.getString('itemSourceUnpacked'); 43 return loadTimeData.getString('itemSourceUnpacked');
44 case SourceType.WEBSTORE: 44 case SourceType.WEBSTORE:
45 return loadTimeData.getString('itemSourceWebstore'); 45 return loadTimeData.getString('itemSourceWebstore');
46 } 46 }
47 assertNotReached(); 47 assertNotReached();
48 } 48 }
49 49
50 return {getItemSource: getItemSource, 50 return {
51 getItemSourceString: getItemSourceString}; 51 getItemSource: getItemSource,
52 getItemSourceString: getItemSourceString
53 };
52 }); 54 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_extensions/item_list.js ('k') | chrome/browser/resources/md_extensions/manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698