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

Issue 12945007: Fix Notifications Icon loading. (Closed)

Created:
7 years, 9 months ago by Dmitry Titov
Modified:
7 years, 9 months ago
Reviewers:
palmer, joth, brettw, jam, Cait (Slow)
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, tfarina, jeremya+watch_chromium.org, browser-components-watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Fix Notifications Icon loading. The recent change to loading favicons regressed the loading regular icons that used the same codepath (https://chromiumcodereview.appspot.com/12218057) The fix is to add a parameter to WebContent::DownloadFavicon(...) to differentiate the loading of favicon and regular images. There is a separate patch, for renaming DownloadFavicon -> DownloadImage (https://codereview.chromium.org/12780024/) TBR=palmer@chromium.org BUG=196769 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189349

Patch Set 1 #

Total comments: 6

Patch Set 2 : cr feedback #

Patch Set 3 : tiny fix #

Total comments: 10

Patch Set 4 : patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -23 lines) Patch
M android_webview/browser/icon_helper.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/metro_pin_tab_helper_win.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/balloon_view_ash.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/web_applications/web_app_ui.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M content/common/icon_messages.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/web_contents.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/favicon_helper.h View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download
M content/renderer/favicon_helper.cc View 1 3 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Dmitry Titov
7 years, 9 months ago (2013-03-19 22:35:29 UTC) #1
Dmitry Titov
7 years, 9 months ago (2013-03-19 22:40:28 UTC) #2
joth
a_w/.. lgtm https://codereview.chromium.org/12945007/diff/1/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/12945007/diff/1/content/public/browser/web_contents.h#newcode427 content/public/browser/web_contents.h:427: // |image_size| is a hint for images ...
7 years, 9 months ago (2013-03-19 22:44:31 UTC) #3
brettw
I'd like the enum to be a bit more unique, maybe like DOWNLOAD_IMAGE_* to match ...
7 years, 9 months ago (2013-03-19 22:50:13 UTC) #4
Cait (Slow)
lgtm from a favicon loading pov. I agree with Brett that a more descriptive name ...
7 years, 9 months ago (2013-03-20 00:04:56 UTC) #5
jam
On 2013/03/19 22:50:13, brettw wrote: > I'd like the enum to be a bit more ...
7 years, 9 months ago (2013-03-20 00:07:57 UTC) #6
Dmitry Titov
I followed John's advice and replaces enum with a bool. Worked fine and looks simpler ...
7 years, 9 months ago (2013-03-20 01:10:07 UTC) #7
Dmitry Titov
John or Brett (only need one of you) - PTAL?
7 years, 9 months ago (2013-03-20 01:21:47 UTC) #8
jam
lgtm https://codereview.chromium.org/12945007/diff/12001/android_webview/browser/icon_helper.cc File android_webview/browser/icon_helper.cc (right): https://codereview.chromium.org/12945007/diff/12001/android_webview/browser/icon_helper.cc#newcode63 android_webview/browser/icon_helper.cc:63: true, // favicon ditto https://codereview.chromium.org/12945007/diff/12001/chrome/browser/favicon/favicon_tab_helper.cc File chrome/browser/favicon/favicon_tab_helper.cc (right): ...
7 years, 9 months ago (2013-03-20 02:44:41 UTC) #9
Dmitry Titov
Removed comments, fixed typo. Added TBR=palmer@ for icon_messages.h change. Landing.
7 years, 9 months ago (2013-03-20 04:51:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dimich@chromium.org/12945007/20001
7 years, 9 months ago (2013-03-20 04:52:16 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=124802
7 years, 9 months ago (2013-03-20 06:32:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dimich@chromium.org/12945007/20001
7 years, 9 months ago (2013-03-20 06:38:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dimich@chromium.org/12945007/20001
7 years, 9 months ago (2013-03-20 14:08:10 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/extensions/shell_window.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-20 17:12:10 UTC) #15
Dmitry Titov
Committed patchset #4 manually as r189349 (presubmit successful).
7 years, 9 months ago (2013-03-20 18:27:43 UTC) #16
palmer
7 years, 9 months ago (2013-03-20 19:08:43 UTC) #17
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698