Don't add extra app list launcher page webviews.
[chromium-blink-merge.git] / extensions / shell / browser / desktop_controller.cc
blob7bf6bc52c0832b550ff41528189acd683d376606
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 "extensions/shell/browser/desktop_controller.h"
7 #include "base/logging.h"
8 #include "base/macros.h"
10 namespace extensions {
11 namespace {
13 DesktopController* g_instance = NULL;
15 } // namespace
17 // static
18 DesktopController* DesktopController::instance() {
19 return g_instance;
22 DesktopController::DesktopController() {
23 CHECK(!g_instance) << "DesktopController already exists";
24 g_instance = this;
27 DesktopController::~DesktopController() {
28 DCHECK(g_instance);
29 g_instance = NULL;
32 } // namespace extensions