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

Issue 482003: Get web app icon via FavIconHelper and auto repair/update (Closed)

Created:
11 years ago by xiyuan
Modified:
9 years, 7 months ago
Reviewers:
Miranda Callahan
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Get web app icon via FavIconHelper and auto repair/update - Expose a DownloadImage method from FavIconHelper to download/decode image for an image url; - Expose FavIconHelper from TabContents; - Update CreateApplicationShortcutView to use the exposed DownloadImage method to get web app icon instead of do it via URLFetcher/PNGCodec; - Check and update web app icon and shortcuts when chrome is lauched as app for OS_WIN; - Code cleanup: - Move a bunch of FavIconHelper methods that are not used externally to private; - Remove an unused cancelable_consumer_ from TabContents; BUG=8539 TEST=Verify issue 8539 is fixed. And create a web page with a non PNG shortcut icon and verify it shows up in create application shortcut dialog. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34332

Patch Set 1 #

Total comments: 34

Patch Set 2 : miranda's review 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+597 lines, -175 lines) Patch
M chrome/browser/browser.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 5 chunks +40 lines, -2 lines 0 comments Download
M chrome/browser/fav_icon_helper.h View 1 2 chunks +30 lines, -19 lines 0 comments Download
M chrome/browser/fav_icon_helper.cc View 1 7 chunks +51 lines, -34 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/views/create_application_shortcut_view.h View 1 4 chunks +10 lines, -31 lines 0 comments Download
M chrome/browser/views/create_application_shortcut_view.cc View 1 5 chunks +54 lines, -77 lines 0 comments Download
M chrome/browser/web_applications/web_app.h View 1 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 10 chunks +371 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
xiyuan
11 years ago (2009-12-09 21:08:29 UTC) #1
Miranda Callahan
This is quite a patch -- great work! See comments; mostly nits, but a few ...
11 years ago (2009-12-09 23:41:35 UTC) #2
xiyuan
CL updated based on your comments. Please take another look. Thanks. http://codereview.chromium.org/482003/diff/1/2 File chrome/browser/browser.cc (right): ...
11 years ago (2009-12-10 01:00:27 UTC) #3
Miranda Callahan
11 years ago (2009-12-10 01:07:47 UTC) #4
LGTM, great work.

Powered by Google App Engine
This is Rietveld 408576698