Don't invoke Render() upon receipt of pause complete signal.
[chromium-blink-merge.git] / athena / activity / activity_factory.cc
blobdbaa77d49e5f6d84f3fa3b22d9aff05f2c586129
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 = nullptr;
16 // static
17 void ActivityFactory::RegisterActivityFactory(ActivityFactory* factory) {
18 DCHECK(!instance);
19 instance = factory;
22 // static
23 ActivityFactory* ActivityFactory::Get() {
24 DCHECK(instance);
25 return instance;
28 // static
29 void ActivityFactory::Shutdown() {
30 DCHECK(instance);
31 delete instance;
32 instance = nullptr;
35 } // namespace athena