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

Unified Diff: chromeos/dbus/debug_daemon_client.cc

Issue 176693003: chromeos: Make dbus::MessageReader memory ownership explicit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a few more callers Created 6 years, 10 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/cryptohome_client.cc ('k') | chromeos/dbus/session_manager_client.cc » ('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 9d06e5f721003de08cbca3428d8f33965f30a0a8..2f24e94105d9bb8d7a8bb266de05348d5047b8b3 100644
--- a/chromeos/dbus/debug_daemon_client.cc
+++ b/chromeos/dbus/debug_daemon_client.cc
@@ -514,10 +514,10 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
}
dbus::MessageReader reader(response);
- uint8* buffer = NULL;
+ const uint8* buffer = NULL;
size_t buf_size = 0;
- if (!reader.PopArrayOfBytes(reinterpret_cast<uint8**>(
- &buffer), &buf_size)) {
+ if (!reader.PopArrayOfBytes(reinterpret_cast<const uint8**>(&buffer),
satorux1 2014/02/24 07:44:55 reinterpret_cast<> looks unnecessary?
Daniel Erat 2014/02/24 08:16:17 good catch; i'm not sure why it was there in the f
+ &buf_size)) {
return;
}
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698