summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 18:05:14 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 18:05:14 +0000
commit75fd678aa3f19dca21026f6edd43e661d24e499e (patch)
tree922ce8bc4c5dd213e1dd50fdd0432d36fb411652 /chrome/browser/ui
parent78eefea776afcf1a271c3eeb302e199ef92a5438 (diff)
downloadchromium_src-75fd678aa3f19dca21026f6edd43e661d24e499e.zip
chromium_src-75fd678aa3f19dca21026f6edd43e661d24e499e.tar.gz
chromium_src-75fd678aa3f19dca21026f6edd43e661d24e499e.tar.bz2
ntp4: app generation tweak
if there was no title and the URL was >45 chars then the app generation would fail. Also, make the extent more specific (i.e. equal to the launch url), so for example you can install a google reader app (will not conflict with cloud print). BUG=none TEST=manual Review URL: http://codereview.chromium.org/7739007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/webui/ntp/app_launcher_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index f63c6ce..9916ccd 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -808,6 +808,7 @@ void AppLauncherHandler::OnFaviconForApp(FaviconService::Handle handle,
web_app->is_bookmark_app = install_info->is_bookmark_app;
web_app->title = install_info->title;
web_app->app_url = install_info->app_url;
+ web_app->urls.push_back(install_info->app_url);
WebApplicationInfo::IconInfo icon;
web_app->icons.push_back(icon);