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

Unified Diff: mojo/system/core_impl.cc

Issue 140503005: Mojo: foo_[0-9] -> foo[0-9]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « mojo/public/tests/system/core_unittest.cc ('k') | mojo/system/core_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core_impl.cc
diff --git a/mojo/system/core_impl.cc b/mojo/system/core_impl.cc
index 74cda83b8c497f5b68ffeb0acad0dc361557be8f..5bda3c8b44739097068c26ef17d100d18c74b93d 100644
--- a/mojo/system/core_impl.cc
+++ b/mojo/system/core_impl.cc
@@ -155,20 +155,18 @@ MojoResult CoreImpl::CreateMessagePipe(MojoHandle* message_pipe_handle0,
if (!VerifyUserPointer<MojoHandle>(message_pipe_handle1, 1))
return MOJO_RESULT_INVALID_ARGUMENT;
- scoped_refptr<MessagePipeDispatcher> dispatcher_0(
- new MessagePipeDispatcher());
- scoped_refptr<MessagePipeDispatcher> dispatcher_1(
- new MessagePipeDispatcher());
+ scoped_refptr<MessagePipeDispatcher> dispatcher0(new MessagePipeDispatcher());
+ scoped_refptr<MessagePipeDispatcher> dispatcher1(new MessagePipeDispatcher());
MojoHandle h0, h1;
{
base::AutoLock locker(handle_table_lock_);
- h0 = AddDispatcherNoLock(dispatcher_0);
+ h0 = AddDispatcherNoLock(dispatcher0);
if (h0 == MOJO_HANDLE_INVALID)
return MOJO_RESULT_RESOURCE_EXHAUSTED;
- h1 = AddDispatcherNoLock(dispatcher_1);
+ h1 = AddDispatcherNoLock(dispatcher1);
if (h1 == MOJO_HANDLE_INVALID) {
handle_table_.erase(h0);
return MOJO_RESULT_RESOURCE_EXHAUSTED;
@@ -176,8 +174,8 @@ MojoResult CoreImpl::CreateMessagePipe(MojoHandle* message_pipe_handle0,
}
scoped_refptr<MessagePipe> message_pipe(new MessagePipe());
- dispatcher_0->Init(message_pipe, 0);
- dispatcher_1->Init(message_pipe, 1);
+ dispatcher0->Init(message_pipe, 0);
+ dispatcher1->Init(message_pipe, 1);
*message_pipe_handle0 = h0;
*message_pipe_handle1 = h1;
« no previous file with comments | « mojo/public/tests/system/core_unittest.cc ('k') | mojo/system/core_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698