Make castv2 performance test work.
[chromium-blink-merge.git] / ui / views / widget / desktop_aura / desktop_factory_ozone.cc
blobe0a44890bc217a53a287c6fb9e35b833805caccc
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.
5 #include "ui/views/widget/desktop_aura/desktop_factory_ozone.h"
7 #include "base/logging.h"
9 namespace views {
11 // static
12 DesktopFactoryOzone* DesktopFactoryOzone::impl_ = NULL;
14 DesktopFactoryOzone::DesktopFactoryOzone() {
17 DesktopFactoryOzone::~DesktopFactoryOzone() {
20 DesktopFactoryOzone* DesktopFactoryOzone::GetInstance() {
21 CHECK(impl_) << "DesktopFactoryOzone accessed before constructed";
22 return impl_;
25 void DesktopFactoryOzone::SetInstance(DesktopFactoryOzone* impl) {
26 impl_ = impl;
29 } // namespace views