OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/ime/input_method_manager.h" | 5 #include "chromeos/ime/input_method_manager.h" |
6 | 6 |
| 7 #include "base/command_line.h" |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chromeos/chromeos_switches.h" |
8 | 10 |
9 namespace chromeos { | 11 namespace chromeos { |
10 namespace input_method { | 12 namespace input_method { |
11 | 13 |
12 namespace { | 14 namespace { |
13 InputMethodManager* g_input_method_manager = NULL; | 15 InputMethodManager* g_input_method_manager = NULL; |
14 } | 16 } |
15 | 17 |
16 InputMethodManager::State::~State() { | 18 InputMethodManager::State::~State() { |
17 } | 19 } |
(...skipping 10 matching lines...) Expand all Loading... |
28 } | 30 } |
29 | 31 |
30 // static | 32 // static |
31 void InputMethodManager::Shutdown() { | 33 void InputMethodManager::Shutdown() { |
32 DCHECK(g_input_method_manager) | 34 DCHECK(g_input_method_manager) |
33 << "InputMethodManager() is not initialized."; | 35 << "InputMethodManager() is not initialized."; |
34 delete g_input_method_manager; | 36 delete g_input_method_manager; |
35 g_input_method_manager = NULL; | 37 g_input_method_manager = NULL; |
36 } | 38 } |
37 | 39 |
| 40 // static |
| 41 bool InputMethodManager::IsExperimentalImeFeaturesEnabled() { |
| 42 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 43 switches::kEnableExperimentalImeFeatures); |
| 44 } |
| 45 |
38 } // namespace input_method | 46 } // namespace input_method |
39 } // namespace chromeos | 47 } // namespace chromeos |
OLD | NEW |