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

Unified Diff: chromeos/dbus/debug_daemon_client.cc

Issue 2672883002: Change chrome debug dbus client to sent ppd contents as an array of bytes. (Closed)
Patch Set: Created 3 years, 11 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 | « 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 c007e2f10c6c380635be766ecfdb806c6b78ef23..6755ffc67756a851115b96a06fef9fe956031994 100644
--- a/chromeos/dbus/debug_daemon_client.cc
+++ b/chromeos/dbus/debug_daemon_client.cc
@@ -498,7 +498,9 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
dbus::MessageWriter writer(&method_call);
writer.AppendString(name);
writer.AppendString(uri);
- writer.AppendString(ppd_contents);
+ writer.AppendArrayOfBytes(
+ reinterpret_cast<const uint8_t*>(ppd_contents.data()),
+ ppd_contents.size());
debugdaemon_proxy_->CallMethod(
&method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
« 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