summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 21:35:47 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 21:35:47 +0000
commit0cb5f50d4ca4adf74fc574b17c3f192cccb74fbe (patch)
treeadb2f92ce1818b8efead0e496db618dd14be7632 /chrome/browser/resources
parent1ae07c3121021be32bbfefd0c4ae97f82e08bddf (diff)
downloadchromium_src-0cb5f50d4ca4adf74fc574b17c3f192cccb74fbe.zip
chromium_src-0cb5f50d4ca4adf74fc574b17c3f192cccb74fbe.tar.gz
chromium_src-0cb5f50d4ca4adf74fc574b17c3f192cccb74fbe.tar.bz2
The Management UI now fetches the icon for each extension
and shows it on the page. BUG=12119 TEST=Open chrome://extensions and all extensions that have an icon associated with them, should show the icon and those that don't have the generic plugin icon. Review URL: http://codereview.chromium.org/292048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/extensions_ui.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/chrome/browser/resources/extensions_ui.html b/chrome/browser/resources/extensions_ui.html
index 978edfc..fc63035 100644
--- a/chrome/browser/resources/extensions_ui.html
+++ b/chrome/browser/resources/extensions_ui.html
@@ -229,6 +229,7 @@ var extensionDataFormat = {
"version": "1.0.231",
"enabled": "true",
"options_url": "options.html",
+ "icon": "relative-path-to-icon.png",
"content_scripts": [
{
"js": ["script1_file1.js", "script1_file2.js"],
@@ -264,6 +265,7 @@ var extensionDataFormat = {
"description": "Extension long format description",
"version": "1.0.231",
"enabled": "true",
+ "icon": "",
"content_scripts": [
{
"js": ["script1_file1.js", "script1_file2.js"],
@@ -574,8 +576,17 @@ function autoUpdate() {
<div class="extension" jsselect="extensions">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
- <td width="62" align="center" valign="top"><img width="48" height="48"
- src="../../app/theme/infobar_plugin.png" /></td>
+ <td width="62" align="center" valign="top">
+ <span jsdisplay="icon"
+ ><img
+ jsvalues=".src:'chrome-extension://' + id + '/' + icon"
+ width="48" height="48" />
+ </span>
+ <span jsdisplay="icon == ''"
+ ><img
+ width="48" height="48"
+ src="../../app/theme/infobar_plugin.png" /></span>
+ </td>
<td valign="top">
<div>
<span class="extension-name"