blob: 007374e37001a497c504b76f91137f989f8b5c4a [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/public/cpp/app_list/app_list_controller.h"
#include "base/logging.h"
namespace app_list {
namespace {
AppListController* g_instance = nullptr;
} // namespace
// static
AppListController* AppListController::Get() {
return g_instance;
}
AppListController::AppListController() {
DCHECK(!g_instance);
g_instance = this;
}
AppListController::~AppListController() {
DCHECK_EQ(this, g_instance);
g_instance = nullptr;
}
} // namespace app_list