1// Copyright 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/views/widget/desktop_aura/desktop_factory_ozone.h"
6
7#include "base/logging.h"
8
9namespace views {
10
11// static
12DesktopFactoryOzone* DesktopFactoryOzone::impl_ = NULL;
13
14DesktopFactoryOzone::DesktopFactoryOzone() {
15}
16
17DesktopFactoryOzone::~DesktopFactoryOzone() {
18}
19
20DesktopFactoryOzone* DesktopFactoryOzone::GetInstance() {
21  CHECK(impl_) << "DesktopFactoryOzone accessed before constructed";
22  return impl_;
23}
24
25void DesktopFactoryOzone::SetInstance(DesktopFactoryOzone* impl) {
26  impl_ = impl;
27}
28
29} // namespace views
30