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

Unified Diff: mojo/system/core.cc

Issue 262093003: Mojo: Add/use |typedef std::vector<scoped_refptr<Dispatcher> > DispatcherVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/system/core_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core.cc
diff --git a/mojo/system/core.cc b/mojo/system/core.cc
index dd8fb573c2c5e6910347e7be8a8133286756e85b..49f0a9c0c68bc880b7d8717585f86c04928cb4d2 100644
--- a/mojo/system/core.cc
+++ b/mojo/system/core.cc
@@ -269,7 +269,7 @@ MojoResult Core::ReadMessage(MojoHandle message_pipe_handle,
if (!num_handles || *num_handles == 0)
return dispatcher->ReadMessage(bytes, num_bytes, NULL, num_handles, flags);
- std::vector<scoped_refptr<Dispatcher> > dispatchers;
+ DispatcherVector dispatchers;
MojoResult rv = dispatcher->ReadMessage(bytes, num_bytes,
&dispatchers, num_handles,
flags);
@@ -537,7 +537,7 @@ MojoResult Core::WaitManyInternal(const MojoHandle* handles,
MojoDeadline deadline) {
DCHECK_GT(num_handles, 0u);
- std::vector<scoped_refptr<Dispatcher> > dispatchers;
+ DispatcherVector dispatchers;
dispatchers.reserve(num_handles);
for (uint32_t i = 0; i < num_handles; i++) {
scoped_refptr<Dispatcher> dispatcher = GetDispatcher(handles[i]);
« no previous file with comments | « no previous file | mojo/system/core_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698