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

Unified Diff: ipc/ipc_channel_posix.cc

Issue 7216030: Use vector_as_array() in ipc/ipc_channel_posix.cc (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 6 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: ipc/ipc_channel_posix.cc
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index 4ccf71215bf0f7e2684315c048af20f5444017c1..0a774d09cd5d01162460639fe0ee74ba19f01294 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -24,6 +24,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/process_util.h"
+#include "base/stl_util-inl.h"
#include "base/string_util.h"
#include "base/synchronization/lock.h"
#include "ipc/ipc_descriptors.h"
@@ -735,7 +736,7 @@ bool Channel::ChannelImpl::ProcessIncomingMessages() {
}
input_overflow_fds_ = std::vector<int>(&fds[fds_i], &fds[num_fds]);
fds_i = 0;
- fds = &input_overflow_fds_[0];
+ fds = vector_as_array(&input_overflow_fds_);
num_fds = input_overflow_fds_.size();
}
input_overflow_buf_.assign(p, end - p);
« 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