OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/extensions/chrome_component_extension_resource_manager.
h" | 5 #include "chrome/browser/extensions/chrome_component_extension_resource_manager.
h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
10 #include "grit/chrome_unscaled_resources.h" | 10 #include "grit/chrome_unscaled_resources.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 ChromeComponentExtensionResourceManager:: | 25 ChromeComponentExtensionResourceManager:: |
26 ChromeComponentExtensionResourceManager() { | 26 ChromeComponentExtensionResourceManager() { |
27 static const GritResourceMap kExtraComponentExtensionResources[] = { | 27 static const GritResourceMap kExtraComponentExtensionResources[] = { |
28 {"web_store/webstore_icon_128.png", IDR_WEBSTORE_ICON}, | 28 {"web_store/webstore_icon_128.png", IDR_WEBSTORE_ICON}, |
29 {"web_store/webstore_icon_16.png", IDR_WEBSTORE_ICON_16}, | 29 {"web_store/webstore_icon_16.png", IDR_WEBSTORE_ICON_16}, |
30 {"chrome_app/product_logo_128.png", IDR_PRODUCT_LOGO_128}, | 30 {"chrome_app/product_logo_128.png", IDR_PRODUCT_LOGO_128}, |
31 {"chrome_app/product_logo_16.png", IDR_PRODUCT_LOGO_16}, | 31 {"chrome_app/product_logo_16.png", IDR_PRODUCT_LOGO_16}, |
| 32 #if defined(OS_CHROMEOS) |
| 33 {"webstore_widget/app/icons/icon_16.png", IDR_WEBSTORE_ICON_16}, |
| 34 {"webstore_widget/app/icons/icon_32.png", IDR_WEBSTORE_ICON_32}, |
| 35 {"webstore_widget/app/icons/icon_128.png", IDR_WEBSTORE_ICON}, |
| 36 #endif |
32 #if defined(ENABLE_SETTINGS_APP) | 37 #if defined(ENABLE_SETTINGS_APP) |
33 {"settings_app/settings_app_icon_128.png", IDR_SETTINGS_APP_ICON_128}, | 38 {"settings_app/settings_app_icon_128.png", IDR_SETTINGS_APP_ICON_128}, |
34 {"settings_app/settings_app_icon_16.png", IDR_SETTINGS_APP_ICON_16}, | 39 {"settings_app/settings_app_icon_16.png", IDR_SETTINGS_APP_ICON_16}, |
35 {"settings_app/settings_app_icon_32.png", IDR_SETTINGS_APP_ICON_32}, | 40 {"settings_app/settings_app_icon_32.png", IDR_SETTINGS_APP_ICON_32}, |
36 {"settings_app/settings_app_icon_48.png", IDR_SETTINGS_APP_ICON_48}, | 41 {"settings_app/settings_app_icon_48.png", IDR_SETTINGS_APP_ICON_48}, |
37 #endif | 42 #endif |
38 }; | 43 }; |
39 | 44 |
40 AddComponentResourceEntries( | 45 AddComponentResourceEntries( |
41 kComponentExtensionResources, | 46 kComponentExtensionResources, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 entries[i].name); | 105 entries[i].name); |
101 resource_path = resource_path.NormalizePathSeparators(); | 106 resource_path = resource_path.NormalizePathSeparators(); |
102 | 107 |
103 DCHECK(path_to_resource_id_.find(resource_path) == | 108 DCHECK(path_to_resource_id_.find(resource_path) == |
104 path_to_resource_id_.end()); | 109 path_to_resource_id_.end()); |
105 path_to_resource_id_[resource_path] = entries[i].value; | 110 path_to_resource_id_[resource_path] = entries[i].value; |
106 } | 111 } |
107 } | 112 } |
108 | 113 |
109 } // namespace extensions | 114 } // namespace extensions |
OLD | NEW |