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

Unified Diff: chromeos/dbus/debug_daemon_client.cc

Issue 11364169: Invoke DebugDaemonClientStubImpl callbacks with PostTask. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/debug_daemon_client.cc
diff --git a/chromeos/dbus/debug_daemon_client.cc b/chromeos/dbus/debug_daemon_client.cc
index 3d719f2f93eae9fc4b42daa05e3170337fd73244..bd42bd836baad0309a44cc735d7ea81cacfb70d1 100644
--- a/chromeos/dbus/debug_daemon_client.cc
+++ b/chromeos/dbus/debug_daemon_client.cc
@@ -12,6 +12,7 @@
#include "base/chromeos/chromeos_version.h"
#include "base/eintr_wrapper.h"
#include "base/memory/ref_counted_memory.h"
+#include "base/message_loop.h"
#include "base/platform_file.h"
#include "base/string_util.h"
#include "base/threading/worker_pool.h"
@@ -537,32 +538,39 @@ class DebugDaemonClientStubImpl : public DebugDaemonClient {
virtual void GetRoutes(bool numeric, bool ipv6,
const GetRoutesCallback& callback) OVERRIDE {
std::vector<std::string> empty;
- callback.Run(false, empty);
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, empty));
}
virtual void GetNetworkStatus(const GetNetworkStatusCallback& callback)
OVERRIDE {
- callback.Run(false, "");
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, ""));
}
virtual void GetModemStatus(const GetModemStatusCallback& callback)
OVERRIDE {
- callback.Run(false, "");
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, ""));
}
virtual void GetNetworkInterfaces(
const GetNetworkInterfacesCallback& callback) OVERRIDE {
- callback.Run(false, "");
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, ""));
}
virtual void GetAllLogs(const GetLogsCallback& callback) OVERRIDE {
std::map<std::string, std::string> empty;
- callback.Run(false, empty);
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, empty));
}
virtual void GetUserLogFiles(const GetLogsCallback& callback) OVERRIDE {
std::map<std::string, std::string> empty;
- callback.Run(false, empty);
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, empty));
}
virtual void TestICMP(const std::string& ip_address,
const TestICMPCallback& callback) OVERRIDE {
- callback.Run(false, "");
+ MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, false, ""));
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698