Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chromeos/ime/ibus_bridge.cc

Issue 12221045: Calling IBusBridge::Initialize/Shutdown function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing CHECK, IBusBridge::Get is also used for availability check. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/ime/ibus_bridge.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chromeos/ime/ibus_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698