| Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| index 2c9745cc6f50c1a4035e95183c54e152e94edf4d..a775fbbe9b3c6c3bf8dac177f14409d82f3febc7 100644
|
| --- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| @@ -101,16 +101,18 @@ void AppLauncherHandler::CreateAppInfo(const Extension* extension,
|
| ExtensionService* service,
|
| DictionaryValue* value) {
|
| bool enabled = service->IsExtensionEnabled(extension->id());
|
| + bool icon_big_exists = true;
|
| GURL icon_big =
|
| ExtensionIconSource::GetIconURL(extension,
|
| Extension::EXTENSION_ICON_LARGE,
|
| ExtensionIconSet::MATCH_EXACTLY,
|
| - !enabled);
|
| + !enabled, &icon_big_exists);
|
| + bool icon_small_exists = true;
|
| GURL icon_small =
|
| ExtensionIconSource::GetIconURL(extension,
|
| Extension::EXTENSION_ICON_BITTY,
|
| ExtensionIconSet::MATCH_BIGGER,
|
| - !enabled);
|
| + !enabled, &icon_small_exists);
|
|
|
| value->Clear();
|
| value->SetString("id", extension->id());
|
| @@ -122,7 +124,9 @@ void AppLauncherHandler::CreateAppInfo(const Extension* extension,
|
| value->SetBoolean("can_uninstall",
|
| Extension::UserMayDisable(extension->location()));
|
| value->SetString("icon_big", icon_big.spec());
|
| + value->SetBoolean("icon_big_exists", icon_big_exists);
|
| value->SetString("icon_small", icon_small.spec());
|
| + value->SetBoolean("icon_small_exists", icon_small_exists);
|
| value->SetInteger("launch_container", extension->launch_container());
|
| ExtensionPrefs* prefs = service->extension_prefs();
|
| value->SetInteger("launch_type",
|
| @@ -686,7 +690,6 @@ void AppLauncherHandler::HandleGenerateAppForLink(const ListValue* args) {
|
| return;
|
| }
|
|
|
| - // TODO(gbillock): get page thumb from thumbnail db/history svc?
|
| FaviconService::Handle h = favicon_service->GetFaviconForURL(
|
| launch_url, history::FAVICON, &favicon_consumer_,
|
| NewCallback(this, &AppLauncherHandler::OnFaviconForApp));
|
|
|