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

Unified Diff: mojo/edk/system/channel.cc

Issue 1676803002: [mojo-edk] Minor clean-up in the ports layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | mojo/edk/system/ports/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel.cc
diff --git a/mojo/edk/system/channel.cc b/mojo/edk/system/channel.cc
index ab138b97c3c54005204a879b59c3b87051d66a4f..fd6370d2c89bc9cc9323b323f57c0c9684d297a2 100644
--- a/mojo/edk/system/channel.cc
+++ b/mojo/edk/system/channel.cc
@@ -36,7 +36,6 @@ Channel::Message::Message(size_t payload_size, size_t num_handles) {
data_ = static_cast<char*>(base::AlignedAlloc(size_,
kChannelMessageAlignment));
- memset(data_, 0, size_);
header_ = reinterpret_cast<Header*>(data_);
DCHECK_LE(size_, std::numeric_limits<uint32_t>::max());
« no previous file with comments | « no previous file | mojo/edk/system/ports/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698