Chromium Code Reviews| Index: ui/base/ime/input_method_factory.cc |
| diff --git a/ui/base/ime/input_method_factory.cc b/ui/base/ime/input_method_factory.cc |
| index 0f000f6387c00d098ba35d3133cbb93e9d2eae2d..e79e5636b2541df1c10ea01e9c8af33193a6ffaf 100644 |
| --- a/ui/base/ime/input_method_factory.cc |
| +++ b/ui/base/ime/input_method_factory.cc |
| @@ -58,6 +58,9 @@ scoped_ptr<InputMethod> CreateInputMethod( |
| } |
| void SetUpInputMethodFactoryForTesting() { |
|
bshe
2014/01/13 22:12:25
My tests suffer the same problem as described in:
|
| + if (g_input_method_set_for_testing) |
| + return; |
| + |
| CHECK(!g_create_input_method_called) |
| << "ui::SetUpInputMethodFactoryForTesting was called after use of " |
| << "ui::CreateInputMethod. You must call " |