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

Unified Diff: chromeos/dbus/fake_introspectable_client.cc

Issue 91373004: Move DBusClient stub implementations into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years 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/fake_introspectable_client.h ('k') | chromeos/dbus/fake_modem_messaging_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chromeos/dbus/fake_introspectable_client.h ('k') | chromeos/dbus/fake_modem_messaging_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698