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

Issue 15025002: Remove ENABLE_MESSAGE_CENTER (Closed)

Created:
7 years, 7 months ago by Dmitry Titov
Modified:
7 years, 7 months ago
Reviewers:
sky, dewittj
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, yoshiki+watch_chromium.org, sail+watch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org, Jun Mukai, stevenjb
Visibility:
Public.

Description

Remove ENABLE_MESSAGE_CENTER Next step on re-factoring Notifications. This will bring the MessageCenter classes, most important message_center::Notification, into build on all systems, including those where the MessageCenter is not yet appearign in UI. This will allow to start using this Notification class in client code and remove the old Notification class defined in chrome/browser/notificaitons/notification.h That will allow the clients that already use Rich Notifications to use richer data type support, for example supply an image bits for a Notification (as in Snapshot notifications). This also removes a lot of compile-time @ifdefs and replaces them with checking a runtime flag which we already have anyways. On Android and iOS, the MessageCenter is not compiled in, for the size concerns and uncertain story for notifications in general - the existing ENABLE_NOTIFICATIONS define is used for that. BUG=174164 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199625 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199920

Patch Set 1 #

Patch Set 2 : apply #

Patch Set 3 : fix bad merge #

Patch Set 4 : speculative android fix #

Patch Set 5 : exclude android and ios #

Patch Set 6 : better way to exclude Android and iOS #

Patch Set 7 : another fix #

Patch Set 8 : fix 3 #

Patch Set 9 : fix 4 #

Patch Set 10 : linux test fix #

Patch Set 11 : ios #

Patch Set 12 : more linux #

Patch Set 13 : try bots love work #

Total comments: 18

Patch Set 14 : feedback from Justin #

Patch Set 15 : one moer fix #

Total comments: 4

Patch Set 16 : feedback from Scott #

Patch Set 17 : fix build #

Patch Set 18 : patch for landing #

Patch Set 19 : fixing static initializer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -467 lines) Patch
M ash/shell/content_client/shell_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +1 line, -8 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +0 lines, -7 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/browser_process.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +26 lines, -29 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +44 lines, -74 lines 0 comments Download
M chrome/browser/extensions/notifications_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +28 lines, -52 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +3 lines, -20 lines 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.cc View 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/notifications/notification.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 22 chunks +99 lines, -110 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.cc View 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_mac.mm View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 5 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 4 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/task_manager/task_manager_notification_browsertest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -12 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -5 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 3 chunks +1 line, -6 lines 0 comments Download
M chrome/test/base/view_event_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +1 line, -8 lines 0 comments Download
A ui/message_center/dummy_message_center.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +45 lines, -0 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +23 lines, -1 line 0 comments Download
M ui/message_center/message_center_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -2 lines 0 comments Download
M ui/message_center/message_center_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M ui/message_center/message_center_util.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Dmitry Titov
Reviewers: dewittj@ - a general review sky@ - OWNERS look for a lot of scattered ...
7 years, 7 months ago (2013-05-08 00:04:02 UTC) #1
dewittj
https://codereview.chromium.org/15025002/diff/50001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/15025002/diff/50001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode149 chrome/browser/extensions/api/notifications/notifications_api.cc:149: if (message_center::IsRichNotificationEnabled()) { need a "!" in the conditional? ...
7 years, 7 months ago (2013-05-08 18:53:01 UTC) #2
Dmitry Titov
https://codereview.chromium.org/15025002/diff/50001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/15025002/diff/50001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode149 chrome/browser/extensions/api/notifications/notifications_api.cc:149: if (message_center::IsRichNotificationEnabled()) { On 2013/05/08 18:53:01, dewittj wrote: > ...
7 years, 7 months ago (2013-05-08 23:03:26 UTC) #3
dewittj
awesome. lgtm
7 years, 7 months ago (2013-05-08 23:52:01 UTC) #4
Dmitry Titov
Scott, it's ready for OWNERS look in: ash/ chrome/test chrome/browser
7 years, 7 months ago (2013-05-09 01:22:27 UTC) #5
sky
https://codereview.chromium.org/15025002/diff/72002/chrome/browser/extensions/extension_crash_recovery_browsertest.cc File chrome/browser/extensions/extension_crash_recovery_browsertest.cc (right): https://codereview.chromium.org/15025002/diff/72002/chrome/browser/extensions/extension_crash_recovery_browsertest.cc#newcode162 chrome/browser/extensions/extension_crash_recovery_browsertest.cc:162: } else { nit: no else (see style guide) ...
7 years, 7 months ago (2013-05-09 15:50:38 UTC) #6
Dmitry Titov
https://codereview.chromium.org/15025002/diff/72002/chrome/browser/extensions/extension_crash_recovery_browsertest.cc File chrome/browser/extensions/extension_crash_recovery_browsertest.cc (right): https://codereview.chromium.org/15025002/diff/72002/chrome/browser/extensions/extension_crash_recovery_browsertest.cc#newcode162 chrome/browser/extensions/extension_crash_recovery_browsertest.cc:162: } else { On 2013/05/09 15:50:38, sky wrote: > ...
7 years, 7 months ago (2013-05-10 00:16:45 UTC) #7
sky
LGTM
7 years, 7 months ago (2013-05-10 05:05:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dimich@chromium.org/15025002/103001
7 years, 7 months ago (2013-05-10 21:38:38 UTC) #9
commit-bot: I haz the power
Change committed as 199625
7 years, 7 months ago (2013-05-11 19:23:23 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/15025002/114001
7 years, 7 months ago (2013-05-14 01:15:36 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-05-14 05:30:25 UTC) #12
Message was sent while issue was closed.
Change committed as 199920

Powered by Google App Engine
This is Rietveld 408576698