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

Unified Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 10836051: Introduce RemoveIBusEngineService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@ibus_module_revise
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/mock_dbus_thread_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/dbus_thread_manager.cc
diff --git a/chromeos/dbus/dbus_thread_manager.cc b/chromeos/dbus/dbus_thread_manager.cc
index 397e431e84fc584cef1ba88213a8fece0ef97c57..8895819537b1e1c730f683288c54ba24afe39372 100644
--- a/chromeos/dbus/dbus_thread_manager.cc
+++ b/chromeos/dbus/dbus_thread_manager.cc
@@ -356,6 +356,16 @@ class DBusThreadManagerImpl : public DBusThreadManager {
return ibus_engine_services_[object_path];
}
+ // DBusThreadManager override.
+ virtual void RemoveIBusEngineService(const dbus::ObjectPath& object_path) {
+ if (ibus_engine_services_.find(object_path) !=
+ ibus_engine_services_.end()) {
satorux1 2012/08/01 19:54:20 might want to add log warning? LOG(WARNING) << "Ob
Seigo Nonaka 2012/08/02 03:14:58 Yes! done. On 2012/08/01 19:54:20, satorux1 wrote:
+ return;
+ }
+ delete ibus_engine_services_[object_path];
+ ibus_engine_services_.erase(object_path);
+ }
+
scoped_ptr<base::Thread> dbus_thread_;
scoped_refptr<dbus::Bus> system_bus_;
scoped_refptr<dbus::Bus> ibus_bus_;
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/mock_dbus_thread_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698