This source file includes following definitions.
- Initialize
- Get
- Shutdown
#include "ui/message_center/message_center.h"
#include "base/observer_list.h"
#include "ui/message_center/message_center_impl.h"
namespace message_center {
namespace {
static MessageCenter* g_message_center;
}
void MessageCenter::Initialize() {
DCHECK(g_message_center == NULL);
g_message_center = new MessageCenterImpl();
}
MessageCenter* MessageCenter::Get() {
DCHECK(g_message_center);
return g_message_center;
}
void MessageCenter::Shutdown() {
DCHECK(g_message_center);
delete g_message_center;
g_message_center = NULL;
}
MessageCenter::MessageCenter() {
}
MessageCenter::~MessageCenter() {
}
}