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 "chromeos/ime/input_method_manager.h"
7 #include "base/logging.h"
10 namespace input_method
{
13 InputMethodManager
* g_input_method_manager
= NULL
;
17 InputMethodManager
* InputMethodManager::Get() {
18 return g_input_method_manager
;
22 void InputMethodManager::Initialize(InputMethodManager
* instance
) {
23 DCHECK(!g_input_method_manager
) << "Do not call Initialize() multiple times.";
24 g_input_method_manager
= instance
;
28 void InputMethodManager::Shutdown() {
29 DCHECK(g_input_method_manager
)
30 << "InputMethodManager() is not initialized.";
31 delete g_input_method_manager
;
32 g_input_method_manager
= NULL
;
35 } // namespace input_method
36 } // namespace chromeos