Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / message_center / dummy_message_center.cc
blobdf49992ad02a0a6a8bc68aa6cc46dec8734da6f6
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.
5 #include "ui/message_center/message_center.h"
7 // This file contains dummy implementation of MessageCenter and used to compile
8 // and link with Android and iOS implementations of Chrome which do not have
9 // notification systems yet. This is to avoid spreading compile-time flags
10 // everywhere in the code.
11 #if !defined(OS_ANDROID) && !defined(OS_IOS)
12 #error This file should only be used in Android or iOS builds.
13 #endif
15 namespace message_center {
17 // static
18 void MessageCenter::Initialize() {
21 // static
22 MessageCenter* MessageCenter::Get() {
23 return NULL;
26 // static
27 void MessageCenter::Shutdown() {
30 MessageCenter::MessageCenter() {
33 MessageCenter::~MessageCenter() {
36 } // namespace message_center