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. 15 #endif 16 17 namespace message_center { 18 19 bool IsRichNotificationEnabled() { 20 return false; 21 } 22 23 // static 24 void MessageCenter::Initialize() { 25 } 26 27 // static 28 MessageCenter* MessageCenter::Get() { 29 return NULL; 30 } 31 32 // static 33 void MessageCenter::Shutdown() { 34 } 35 36 MessageCenter::MessageCenter() { 37 } 38 39 MessageCenter::~MessageCenter() { 40 } 41 42 MessageCenter::Delegate::~Delegate() { 43 } 44 45 } // namespace message_center 46