Index: ui/message_center/dummy_message_center.cc |
diff --git a/ui/message_center/dummy_message_center.cc b/ui/message_center/dummy_message_center.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c6ce361ac86b1d76191952c6a68fffde54875a39 |
--- /dev/null |
+++ b/ui/message_center/dummy_message_center.cc |
@@ -0,0 +1,45 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/message_center/message_center.h" |
+#include "ui/message_center/message_center_switches.h" |
+#include "ui/message_center/message_center_util.h" |
+ |
+// This file contains dummy implementation of MessageCenter and used to compile |
+// and link with Android and iOS implementations of Chrome which do not have |
+// notification systems yet. This is to avoid spreading compile-time flags |
+// everywhere in the code. |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
+#error This file should only be used in Android or iOS builds. |
+#endif |
+ |
+namespace message_center { |
+ |
+bool IsRichNotificationEnabled() { |
+ return false; |
+} |
+ |
+// static |
+void MessageCenter::Initialize() { |
+} |
+ |
+// static |
+MessageCenter* MessageCenter::Get() { |
+ return NULL; |
+} |
+ |
+// static |
+void MessageCenter::Shutdown() { |
+} |
+ |
+MessageCenter::MessageCenter() { |
+} |
+ |
+MessageCenter::~MessageCenter() { |
+} |
+ |
+MessageCenter::Delegate::~Delegate() { |
+} |
+ |
+} // namespace message_center |