diff options
author | dimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-14 05:30:24 +0000 |
---|---|---|
committer | dimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-14 05:30:24 +0000 |
commit | fb1aac14e2833d6ba5b9d9ba61a964a6eb26f180 (patch) | |
tree | 3ec59087d20b1bded6b25484dbc7558a6957b76f /chrome/browser/browser_process.h | |
parent | 25c2f0dd9ae9c7f8db2527dd72e3cbb45666c57e (diff) | |
download | chromium_src-fb1aac14e2833d6ba5b9d9ba61a964a6eb26f180.zip chromium_src-fb1aac14e2833d6ba5b9d9ba61a964a6eb26f180.tar.gz chromium_src-fb1aac14e2833d6ba5b9d9ba61a964a6eb26f180.tar.bz2 |
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
Review URL: https://chromiumcodereview.appspot.com/15025002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process.h')
-rw-r--r-- | chrome/browser/browser_process.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/browser_process.h b/chrome/browser/browser_process.h index 0b4c674..22b347c 100644 --- a/chrome/browser/browser_process.h +++ b/chrome/browser/browser_process.h @@ -54,11 +54,9 @@ namespace extensions { class EventRouterForwarder; } -#if defined(ENABLE_MESSAGE_CENTER) namespace message_center { class MessageCenter; } -#endif namespace net { class URLRequestContextGetter; @@ -114,10 +112,8 @@ class BrowserProcess { // Returns the manager for desktop notifications. virtual NotificationUIManager* notification_ui_manager() = 0; -#if defined(ENABLE_MESSAGE_CENTER) // MessageCenter is a global list of currently displayed notifications. virtual message_center::MessageCenter* message_center() = 0; -#endif // Returns the state object for the thread that we perform I/O // coordination on (network requests, communication with renderers, |