Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / athena / activity / activity_factory.cc
blob2507281eef19f8cdb2799ed1a7d5dc2f76ce1a51
1 // Copyright 2014 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 "athena/activity/public/activity_factory.h"
7 #include "base/logging.h"
9 namespace athena {
11 namespace {
13 ActivityFactory* instance = NULL;
17 // static
18 void ActivityFactory::RegisterActivityFactory(ActivityFactory* factory) {
19 DCHECK(!instance);
20 instance = factory;
23 // static
24 ActivityFactory* ActivityFactory::Get() {
25 DCHECK(instance);
26 return instance;
29 // static
30 void ActivityFactory::Shutdown() {
31 DCHECK(instance);
32 delete instance;
33 instance = NULL;
36 } // namespace athena