| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |