Index: chromeos/dbus/fake_introspectable_client.cc |
diff --git a/chromeos/ime/input_method_manager.cc b/chromeos/dbus/fake_introspectable_client.cc |
similarity index 27% |
copy from chromeos/ime/input_method_manager.cc |
copy to chromeos/dbus/fake_introspectable_client.cc |
index cede581b38b473b57ffc0cfa6a30b70ada019727..9b30b6f96954382a8699f49491c7d8051c9f6823 100644 |
--- a/chromeos/ime/input_method_manager.cc |
+++ b/chromeos/dbus/fake_introspectable_client.cc |
@@ -2,35 +2,25 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chromeos/ime/input_method_manager.h" |
+#include "chromeos/dbus/fake_introspectable_client.h" |
+#include "base/callback.h" |
#include "base/logging.h" |
+#include "dbus/object_path.h" |
namespace chromeos { |
-namespace input_method { |
-namespace { |
-InputMethodManager* g_input_method_manager = NULL; |
-} |
+FakeIntrospectableClient::FakeIntrospectableClient() {} |
-// static |
-InputMethodManager* InputMethodManager::Get() { |
- return g_input_method_manager; |
-} |
+FakeIntrospectableClient::~FakeIntrospectableClient() {} |
-// static |
-void InputMethodManager::Initialize(InputMethodManager* instance) { |
- DCHECK(!g_input_method_manager) << "Do not call Initialize() multiple times."; |
- g_input_method_manager = instance; |
-} |
+void FakeIntrospectableClient::Init(dbus::Bus* bus) {} |
-// static |
-void InputMethodManager::Shutdown() { |
- DCHECK(g_input_method_manager) |
- << "InputMethodManager() is not initialized."; |
- delete g_input_method_manager; |
- g_input_method_manager = NULL; |
+void FakeIntrospectableClient::Introspect(const std::string& service_name, |
+ const dbus::ObjectPath& object_path, |
+ const IntrospectCallback& callback) { |
+ VLOG(1) << "Introspect: " << service_name << " " << object_path.value(); |
+ callback.Run(service_name, object_path, "", false); |
} |
-} // namespace input_method |
} // namespace chromeos |