| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/dbus/liveness_service_provider.h" | 5 #include "chrome/browser/chromeos/dbus/liveness_service_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "dbus/bus.h" | 9 #include "dbus/bus.h" |
| 10 #include "dbus/message.h" | 10 #include "dbus/message.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 if (!success) { | 40 if (!success) { |
| 41 LOG(ERROR) << "Failed to export " << interface_name << "." | 41 LOG(ERROR) << "Failed to export " << interface_name << "." |
| 42 << method_name; | 42 << method_name; |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 void LivenessServiceProvider::CheckLiveness( | 46 void LivenessServiceProvider::CheckLiveness( |
| 47 dbus::MethodCall* method_call, | 47 dbus::MethodCall* method_call, |
| 48 dbus::ExportedObject::ResponseSender response_sender) { | 48 dbus::ExportedObject::ResponseSender response_sender) { |
| 49 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 49 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 50 dbus::Response* response = dbus::Response::FromMethodCall(method_call); | 50 response_sender.Run(dbus::Response::FromMethodCall(method_call)); |
| 51 response_sender.Run(response); | |
| 52 } | 51 } |
| 53 | 52 |
| 54 } // namespace chromeos | 53 } // namespace chromeos |
| OLD | NEW |