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

Issue 559723002: Refactoring: Move MessagePipeReader subclasess out from ChannelMojo (Closed)

Created:
6 years, 3 months ago by Hajime Morrita
Modified:
6 years, 3 months ago
Reviewers:
yzshen1, viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Move MessagePipeReader subclasess out from ChannelMojo There are a few MessagePipeReader sublcasses defined as inter-classes of ChannelMojo. This makes it harder to hook them for unit testing. This CL moves these classes their own file. Now unittest can define subclasses of these to hook some behavor for testing. This is a preparation for a crash fix. BUG=410813 TEST=none R=viettrungluu@chromium.org,yzshen@chromium.org Committed: https://crrev.com/3b41d6ca4deea242d5fa916d4c4864fd08bddf06 Cr-Commit-Position: refs/heads/master@{#294439}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Updated #

Total comments: 4

Patch Set 3 : Addressed comments #

Patch Set 4 : Removed garbage #

Total comments: 10

Patch Set 5 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -382 lines) Patch
M ipc/mojo/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 1 5 chunks +24 lines, -10 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 7 chunks +73 lines, -372 lines 0 comments Download
A ipc/mojo/ipc_channel_mojo_readers.h View 1 2 3 4 1 chunk +102 lines, -0 lines 0 comments Download
A ipc/mojo/ipc_channel_mojo_readers.cc View 1 2 3 1 chunk +321 lines, -0 lines 0 comments Download
M ipc/mojo/ipc_mojo.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
Hajime Morrita
6 years, 3 months ago (2014-09-09 21:37:13 UTC) #1
yzshen1
https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo.cc File ipc/mojo/ipc_channel_mojo.cc (right): https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo.cc#newcode243 ipc/mojo/ipc_channel_mojo.cc:243: return false; This is supposed to be a MojoResult. ...
6 years, 3 months ago (2014-09-09 23:52:40 UTC) #2
Hajime Morrita
Thanks for the review Yuzhu! PTAL? https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo.h File ipc/mojo/ipc_channel_mojo.h (right): https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo.h#newcode86 ipc/mojo/ipc_channel_mojo.h:86: // has ChannelMojo ...
6 years, 3 months ago (2014-09-10 17:16:35 UTC) #3
yzshen1
Only a few nits. https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo_readers.cc File ipc/mojo/ipc_channel_mojo_readers.cc (right): https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo_readers.cc#newcode19 ipc/mojo/ipc_channel_mojo_readers.cc:19: //------------------------------------------------------------------------------ On 2014/09/09 23:52:40, yzshen1 ...
6 years, 3 months ago (2014-09-10 17:31:09 UTC) #4
Hajime Morrita
PTAL? https://codereview.chromium.org/559723002/diff/20001/ipc/mojo/ipc_channel_mojo.cc File ipc/mojo/ipc_channel_mojo.cc (right): https://codereview.chromium.org/559723002/diff/20001/ipc/mojo/ipc_channel_mojo.cc#newcode243 ipc/mojo/ipc_channel_mojo.cc:243: return false; On 2014/09/10 17:31:09, yzshen1 wrote: > ...
6 years, 3 months ago (2014-09-10 18:04:02 UTC) #5
yzshen1
https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo_readers.cc File ipc/mojo/ipc_channel_mojo_readers.cc (right): https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo_readers.cc#newcode19 ipc/mojo/ipc_channel_mojo_readers.cc:19: //------------------------------------------------------------------------------ On 2014/09/10 17:31:09, yzshen1 wrote: > On 2014/09/09 ...
6 years, 3 months ago (2014-09-10 18:06:16 UTC) #6
Hajime Morrita
https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo_readers.cc File ipc/mojo/ipc_channel_mojo_readers.cc (right): https://codereview.chromium.org/559723002/diff/1/ipc/mojo/ipc_channel_mojo_readers.cc#newcode19 ipc/mojo/ipc_channel_mojo_readers.cc:19: //------------------------------------------------------------------------------ On 2014/09/10 18:06:16, yzshen1 wrote: > On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 20:29:53 UTC) #7
yzshen1
lgtm
6 years, 3 months ago (2014-09-10 20:36:10 UTC) #8
Hajime Morrita
Trung, could you take a look? Just moving classes to different file.
6 years, 3 months ago (2014-09-10 21:54:33 UTC) #9
viettrungluu
Rubberstamp LGTM w/nits. https://codereview.chromium.org/559723002/diff/60001/ipc/mojo/ipc_channel_mojo_readers.h File ipc/mojo/ipc_channel_mojo_readers.h (right): https://codereview.chromium.org/559723002/diff/60001/ipc/mojo/ipc_channel_mojo_readers.h#newcode11 ipc/mojo/ipc_channel_mojo_readers.h:11: #include "base/memory/scoped_vector.h" nit: I don't think ...
6 years, 3 months ago (2014-09-11 17:10:25 UTC) #10
Hajime Morrita
Thanks for the review! Landing with fix. https://codereview.chromium.org/559723002/diff/60001/ipc/mojo/ipc_channel_mojo_readers.h File ipc/mojo/ipc_channel_mojo_readers.h (right): https://codereview.chromium.org/559723002/diff/60001/ipc/mojo/ipc_channel_mojo_readers.h#newcode11 ipc/mojo/ipc_channel_mojo_readers.h:11: #include "base/memory/scoped_vector.h" ...
6 years, 3 months ago (2014-09-11 17:19:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/559723002/80001
6 years, 3 months ago (2014-09-11 17:40:41 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 8fa7675d96fccf24a98d0f4bc9d4438b09f9c20e
6 years, 3 months ago (2014-09-11 19:07:34 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 19:12:36 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3b41d6ca4deea242d5fa916d4c4864fd08bddf06
Cr-Commit-Position: refs/heads/master@{#294439}

Powered by Google App Engine
This is Rietveld 408576698