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

Side by Side Diff: ui/message_center/dummy_message_center.cc

Issue 15025002: Remove ENABLE_MESSAGE_CENTER (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try bots love work Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/message_center/message_center.h"
6 #include "ui/message_center/message_center_switches.h"
7 #include "ui/message_center/message_center_util.h"
8
9 // This file contains dummy implementation of MessageCenter and used to compile
10 // and link with Android and iOS implementations of Chrome which do not have
11 // notification systems yet. This is to avoid spreading compile-time flags
12 // everywhere in the code.
13 #if !defined(OS_ANDROID) && !defined(OS_IOS)
14 //#error This file should only be used in Android or iOS builds.
dewittj 2013/05/08 18:53:01 should this be commented out?
Dmitry Titov 2013/05/08 23:03:26 Yes! Thanks, done.
15 #endif
16
17 namespace message_center {
18
19 bool IsRichNotificationEnabled() {
20 return false;
21 }
22
23 namespace switches {
24 const char kDisableRichNotifications[] = "disable-rich-notifications";
dewittj 2013/05/08 18:53:01 Can we just include messag_center_switches.h/cc in
Dmitry Titov 2013/05/08 23:03:26 Done.
25 const char kEnableRichNotifications[] = "enable-rich-notifications";
26 } // namespace switches
27
28 // static
29 void MessageCenter::Initialize() {
30 }
31
32 // static
33 MessageCenter* MessageCenter::Get() {
34 return NULL;
35 }
36
37 // static
38 void MessageCenter::Shutdown() {
39 }
40
41 MessageCenter::MessageCenter() {
42 }
43
44 MessageCenter::~MessageCenter() {
45 }
46
47 MessageCenter::Delegate::~Delegate() {
48 }
49
50 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698