OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ibus_bridge.h" | 5 #include "chromeos/ime/ibus_bridge.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // static. | 93 // static. |
94 void IBusBridge::Shutdown() { | 94 void IBusBridge::Shutdown() { |
95 CHECK(g_ibus_bridge) << "Shutdown called before Initialize()."; | 95 CHECK(g_ibus_bridge) << "Shutdown called before Initialize()."; |
96 delete g_ibus_bridge; | 96 delete g_ibus_bridge; |
97 g_ibus_bridge = NULL; | 97 g_ibus_bridge = NULL; |
98 } | 98 } |
99 | 99 |
100 // static. | 100 // static. |
101 IBusBridge* IBusBridge::Get() { | 101 IBusBridge* IBusBridge::Get() { |
102 CHECK(g_ibus_bridge) | |
103 << "IBusBrige::Get() called before Initialized() or after Shutdown()."; | |
104 return g_ibus_bridge; | 102 return g_ibus_bridge; |
105 } | 103 } |
106 | 104 |
107 } // namespace chromeos | 105 } // namespace chromeos |
OLD | NEW |