| Index: chromeos/dbus/debug_daemon_client.cc
|
| diff --git a/chromeos/dbus/debug_daemon_client.cc b/chromeos/dbus/debug_daemon_client.cc
|
| index 25a55e331f75946d92088a2da819e140743e3329..6c377ae713c5d4d0743b6505cd7af9cf916d9a22 100644
|
| --- a/chromeos/dbus/debug_daemon_client.cc
|
| +++ b/chromeos/dbus/debug_daemon_client.cc
|
| @@ -313,7 +313,7 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
|
| debugdaemon_proxy_->CallMethod(
|
| &method_call,
|
| dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| - base::Bind(&DebugDaemonClientImpl::OnStartSystemTracing,
|
| + base::Bind(&DebugDaemonClientImpl::OnStartMethod,
|
| weak_ptr_factory_.GetWeakPtr()));
|
| }
|
|
|
| @@ -400,6 +400,16 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
|
| callback));
|
| }
|
|
|
| + virtual void UploadCrashes() OVERRIDE {
|
| + dbus::MethodCall method_call(debugd::kDebugdInterface,
|
| + debugd::kUploadCrashes);
|
| + debugdaemon_proxy_->CallMethod(
|
| + &method_call,
|
| + dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| + base::Bind(&DebugDaemonClientImpl::OnStartMethod,
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| + }
|
| +
|
| protected:
|
| virtual void Init(dbus::Bus* bus) OVERRIDE {
|
| debugdaemon_proxy_ =
|
| @@ -553,10 +563,10 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
|
| return OnGetAllLogs(callback, response);
|
| }
|
|
|
| - // Called when a response for StartSystemTracing() is received.
|
| - void OnStartSystemTracing(dbus::Response* response) {
|
| + // Called when a response for a simple start is received.
|
| + void OnStartMethod(dbus::Response* response) {
|
| if (!response) {
|
| - LOG(ERROR) << "Failed to request systrace start";
|
| + LOG(ERROR) << "Failed to request start";
|
| return;
|
| }
|
| }
|
|
|