Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / base / ime / chromeos / input_method_manager.cc
blob5e26c950e8f05318179ce6d4c759f7f483c50f81
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/base/ime/chromeos/input_method_manager.h"
7 #include "base/logging.h"
9 namespace chromeos {
10 namespace input_method {
12 namespace {
13 InputMethodManager* g_input_method_manager = NULL;
16 InputMethodManager::State::~State() {
19 // static
20 InputMethodManager* InputMethodManager::Get() {
21 return g_input_method_manager;
24 // static
25 void InputMethodManager::Initialize(InputMethodManager* instance) {
26 DCHECK(!g_input_method_manager) << "Do not call Initialize() multiple times.";
27 g_input_method_manager = instance;
30 // static
31 void InputMethodManager::Shutdown() {
32 DCHECK(g_input_method_manager)
33 << "InputMethodManager() is not initialized.";
34 delete g_input_method_manager;
35 g_input_method_manager = NULL;
38 } // namespace input_method
39 } // namespace chromeos