blob: a0e5be26b9f05e4f5af0f30ab46d75dbf47970ae [file] [log] [blame]
// Copyright 2018 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/tablet_mode.h"
#include "base/logging.h"
namespace ash {
namespace {
TabletMode* g_instance = nullptr;
}
TabletMode* TabletMode::Get() {
return g_instance;
}
TabletMode::TabletMode() {
DCHECK_EQ(nullptr, g_instance);
g_instance = this;
}
TabletMode::~TabletMode() {
DCHECK_EQ(this, g_instance);
g_instance = nullptr;
}
} // namespace ash