blob: 81fd87be0fcab6612d69205eb80cbdbd71f29dbe [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/accessibility_controller.h"
#include "base/logging.h"
namespace ash {
namespace {
AccessibilityController* g_instance = nullptr;
}
AccessibilityController* AccessibilityController::Get() {
return g_instance;
}
AccessibilityController::AccessibilityController() {
DCHECK_EQ(nullptr, g_instance);
g_instance = this;
}
AccessibilityController::~AccessibilityController() {
DCHECK_EQ(this, g_instance);
g_instance = nullptr;
}
} // namespace ash