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

Unified Diff: chromeos/dbus/debug_daemon_client.cc

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 months 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/debug_daemon_client.h ('k') | chromeos/dbus/fake_debug_daemon_client.h » ('j') | 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 b73ccaa246f79d17dc3f4c6aad6fb8d38c647116..432f3f756086730daed838c9937af75e645a8450 100644
--- a/chromeos/dbus/debug_daemon_client.cc
+++ b/chromeos/dbus/debug_daemon_client.cc
@@ -46,9 +46,9 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
virtual ~DebugDaemonClientImpl() {}
// DebugDaemonClient override.
- virtual void GetDebugLogs(base::File file,
- const GetDebugLogsCallback& callback) OVERRIDE {
-
+ virtual void DumpDebugLogs(bool is_compressed,
+ base::File file,
+ const GetDebugLogsCallback& callback) OVERRIDE {
dbus::FileDescriptor* file_descriptor = new dbus::FileDescriptor;
file_descriptor->PutValue(file.TakePlatformFile());
// Punt descriptor validity check to a worker thread; on return we'll
@@ -59,6 +59,7 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
base::Unretained(file_descriptor)),
base::Bind(&DebugDaemonClientImpl::OnCheckValidityGetDebugLogs,
weak_ptr_factory_.GetWeakPtr(),
+ is_compressed,
base::Owned(file_descriptor),
callback),
false);
@@ -313,13 +314,14 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
private:
// Called when a CheckValidity response is received.
- void OnCheckValidityGetDebugLogs(dbus::FileDescriptor* file_descriptor,
+ void OnCheckValidityGetDebugLogs(bool is_compressed,
+ dbus::FileDescriptor* file_descriptor,
const GetDebugLogsCallback& callback) {
// Issue the dbus request to get debug logs.
- dbus::MethodCall method_call(
- debugd::kDebugdInterface,
- debugd::kGetDebugLogs);
+ dbus::MethodCall method_call(debugd::kDebugdInterface,
+ debugd::kDumpDebugLogs);
dbus::MessageWriter writer(&method_call);
+ writer.AppendBool(is_compressed);
writer.AppendFileDescriptor(*file_descriptor);
debugdaemon_proxy_->CallMethod(
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | chromeos/dbus/fake_debug_daemon_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698