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

Issue 580243004: Remove unnecessary image downloading handler of notifications. (Closed)

Created:
6 years, 3 months ago by Jun Mukai
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, derat+watch_chromium.org, haitaol+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, chromium-apps-reviews_chromium.org, peter+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary image downloading handler of notifications. The image_url, small_image_url, and the button urls are never set in the current code base. Removing these URLs also means removing the ImageDownloads of MessageCenterNotificationManager, and also means removing unnecessary methods of NotificationDelegate. I think NotificationDelegate::id() can be removed and then we can completely remove ::NotificationDelegate class for now, but that would be done in another CL. This CL depends on https://codereview.chromium.org/554213003/ BUG=None R=dewittj@chromium.org, peter@chromium.org TBR=atwilson@chromium.org, vitalybuka@chromium.org, tapted@chromium.org, oshima@chromium.org TEST=no functional changes, build succeeds Committed: https://crrev.com/523714fe51f36b7b850722e760619119e479d081 Cr-Commit-Position: refs/heads/master@{#300032}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix order #

Patch Set 3 : re-upload #

Total comments: 4

Patch Set 4 : fix #

Total comments: 2

Patch Set 5 : fix #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : build fix of desktop linux/win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -311 lines) Patch
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/power/peripheral_battery_observer.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 4 5 6 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/local_discovery/privet_notifications.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/local_discovery/privet_notifications.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/notifications/extension_welcome_notification_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.h View 1 2 3 4 5 6 3 chunks +1 line, -58 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 4 5 6 5 chunks +1 line, -123 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_browsertest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification.h View 1 2 3 4 5 6 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/notifications/notification.cc View 1 2 3 4 5 6 3 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/notifications/notification_delegate.h View 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/browser/notifications/notification_delegate.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.h View 1 2 3 4 5 6 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.cc View 1 2 3 2 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.h View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/signin/signin_error_notifier_ash.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/status_icons/desktop_notification_balloon.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/sync_error_notifier_ash.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/screenshot_taker.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ui/message_center/notifier_settings.h View 1 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
Jun Mukai
6 years, 3 months ago (2014-09-19 00:08:35 UTC) #1
dewittj
lgtm https://codereview.chromium.org/580243004/diff/1/ui/message_center/notifier_settings.h File ui/message_center/notifier_settings.h (right): https://codereview.chromium.org/580243004/diff/1/ui/message_center/notifier_settings.h#newcode71 ui/message_center/notifier_settings.h:71: friend class ::MessageCenterNotificationsTest; wonder if sorting should put ...
6 years, 3 months ago (2014-09-19 00:17:53 UTC) #2
Jun Mukai
https://codereview.chromium.org/580243004/diff/1/ui/message_center/notifier_settings.h File ui/message_center/notifier_settings.h (right): https://codereview.chromium.org/580243004/diff/1/ui/message_center/notifier_settings.h#newcode71 ui/message_center/notifier_settings.h:71: friend class ::MessageCenterNotificationsTest; On 2014/09/19 00:17:53, dewittj wrote: > ...
6 years, 3 months ago (2014-09-19 00:22:30 UTC) #3
dewittj
I think PS 2 has some of peter's changes in it.
6 years, 3 months ago (2014-09-19 00:24:02 UTC) #4
Jun Mukai
oops, mistake on the upload parameter. re-uploaded.
6 years, 3 months ago (2014-09-19 00:30:13 UTC) #5
Peter Beverloo
lgtm Awesome! This is great, and largely supersedes my CL to reduce the dependencies on ...
6 years, 3 months ago (2014-09-19 11:27:46 UTC) #6
Jun Mukai
https://codereview.chromium.org/580243004/diff/40001/chrome/browser/notifications/notification.h File chrome/browser/notifications/notification.h (left): https://codereview.chromium.org/580243004/diff/40001/chrome/browser/notifications/notification.h#oldcode63 chrome/browser/notifications/notification.h:63: void DoneRendering() { delegate()->ReleaseRenderViewHost(); } On 2014/09/19 11:27:46, Peter ...
6 years, 3 months ago (2014-09-19 22:34:29 UTC) #7
oshima
drive by nits (slgtm) https://codereview.chromium.org/580243004/diff/60001/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (right): https://codereview.chromium.org/580243004/diff/60001/chrome/browser/notifications/desktop_notification_service.cc#newcode161 chrome/browser/notifications/desktop_notification_service.cc:161: NotificationObjectProxy* proxy =new NotificationObjectProxy(delegate.Pass()); nit: ...
6 years, 3 months ago (2014-09-21 15:26:01 UTC) #9
Jun Mukai
https://codereview.chromium.org/580243004/diff/60001/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (right): https://codereview.chromium.org/580243004/diff/60001/chrome/browser/notifications/desktop_notification_service.cc#newcode161 chrome/browser/notifications/desktop_notification_service.cc:161: NotificationObjectProxy* proxy =new NotificationObjectProxy(delegate.Pass()); On 2014/09/21 15:26:01, oshima wrote: ...
6 years, 3 months ago (2014-09-22 18:54:37 UTC) #10
Jun Mukai
rebased. Now peter's CL was landed, so it's ready to land this.
6 years, 2 months ago (2014-10-16 21:17:22 UTC) #11
Jun Mukai
TBR for the following people. All changes on those directories are simply removing GetWebContents() overrides ...
6 years, 2 months ago (2014-10-16 21:21:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/580243004/120001
6 years, 2 months ago (2014-10-16 21:24:59 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32 on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32/builds/2610) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/26417) win_chromium_compile_dbg ...
6 years, 2 months ago (2014-10-16 21:58:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/580243004/140001
6 years, 2 months ago (2014-10-16 22:46:44 UTC) #20
Vitaly Buka (NO REVIEWS)
lgtm chrome/browser/local_discovery
6 years, 2 months ago (2014-10-17 00:48:43 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 2 months ago (2014-10-17 01:11:04 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 01:11:45 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/523714fe51f36b7b850722e760619119e479d081
Cr-Commit-Position: refs/heads/master@{#300032}

Powered by Google App Engine
This is Rietveld 408576698