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

Unified Diff: chrome/browser/extensions/extensions_ui.cc

Issue 7452008: Improve layout for bookmark-apps. Add a treatment for small icons. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More rebase repair Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extensions_ui.cc
diff --git a/chrome/browser/extensions/extensions_ui.cc b/chrome/browser/extensions/extensions_ui.cc
index 8eb68c83407ca062febc878a8f377ad46de023b8..04769caa651bc4cdfa010dda30771eaa09ace432 100644
--- a/chrome/browser/extensions/extensions_ui.cc
+++ b/chrome/browser/extensions/extensions_ui.cc
@@ -639,11 +639,12 @@ DictionaryValue* ExtensionsDOMHandler::CreateExtensionDetailValue(
ExtensionService* service, const Extension* extension,
const std::vector<ExtensionPage>& pages, bool enabled, bool terminated) {
DictionaryValue* extension_data = new DictionaryValue();
+ bool icon_exists = true;
GURL icon =
ExtensionIconSource::GetIconURL(extension,
Extension::EXTENSION_ICON_MEDIUM,
ExtensionIconSet::MATCH_BIGGER,
- !enabled);
+ !enabled, &icon_exists);
extension_data->SetString("id", extension->id());
extension_data->SetString("name", extension->name());
extension_data->SetString("description", extension->description());
@@ -651,6 +652,7 @@ DictionaryValue* ExtensionsDOMHandler::CreateExtensionDetailValue(
extension_data->SetString("path", extension->path().value());
extension_data->SetString("version", extension->version()->GetString());
extension_data->SetString("icon", icon.spec());
+ extension_data->SetBoolean("icon_exists", icon_exists);
Evan Stade 2011/07/27 16:31:45 this is unused, right? Why set it?
Greg Billock 2011/07/27 19:52:24 I changed line 647 to the new signature. I thought
Evan Stade 2011/07/27 23:04:31 I would just pass NULL for now instead of adding c
Greg Billock 2011/07/28 16:59:59 Nah, showing the default 'huh?' icon is probably f
extension_data->SetBoolean("isUnpacked",
extension->location() == Extension::LOAD);
extension_data->SetBoolean("mayDisable",

Powered by Google App Engine
This is Rietveld 408576698