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

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

Issue 231723006: Remove balloon notification code. The last user was the Linux GTK port but that's deleted now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync after elliot's r263101 Created 6 years, 8 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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | ui/message_center/message_center_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/message_center/message_center.h" 5 #include "ui/message_center/message_center.h"
6 #include "ui/message_center/message_center_switches.h" 6 #include "ui/message_center/message_center_switches.h"
7 #include "ui/message_center/message_center_util.h" 7 #include "ui/message_center/message_center_util.h"
8 8
9 // This file contains dummy implementation of MessageCenter and used to compile 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 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 11 // notification systems yet. This is to avoid spreading compile-time flags
12 // everywhere in the code. 12 // everywhere in the code.
13 #if !defined(OS_ANDROID) && !defined(OS_IOS) 13 #if !defined(OS_ANDROID) && !defined(OS_IOS)
14 #error This file should only be used in Android or iOS builds. 14 #error This file should only be used in Android or iOS builds.
15 #endif 15 #endif
16 16
17 namespace message_center { 17 namespace message_center {
18 18
19 bool IsRichNotificationEnabled() {
20 return false;
21 }
22
23 // static 19 // static
24 void MessageCenter::Initialize() { 20 void MessageCenter::Initialize() {
25 } 21 }
26 22
27 // static 23 // static
28 MessageCenter* MessageCenter::Get() { 24 MessageCenter* MessageCenter::Get() {
29 return NULL; 25 return NULL;
30 } 26 }
31 27
32 // static 28 // static
33 void MessageCenter::Shutdown() { 29 void MessageCenter::Shutdown() {
34 } 30 }
35 31
36 MessageCenter::MessageCenter() { 32 MessageCenter::MessageCenter() {
37 } 33 }
38 34
39 MessageCenter::~MessageCenter() { 35 MessageCenter::~MessageCenter() {
40 } 36 }
41 37
42 } // namespace message_center 38 } // namespace message_center
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | ui/message_center/message_center_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698