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

Issue 506353002: Make HandleWatcher watch on the same thread if the thread is running a MessagePumpMojo. (Closed)

Created:
6 years, 3 months ago by yzshen1
Modified:
6 years, 3 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, erikwright+watch_chromium.org, ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make HandleWatcher watch on the same thread if the thread is running a MessagePumpMojo. This CL also makes ApplicationRunnerChromium use MessagePumpMojo by default BUG=None TEST=None Committed: https://crrev.com/d928bdd26e4800d3ffc76a56877dda8dafae26b4 Cr-Commit-Position: refs/heads/master@{#292702}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : remove MessageLoopForMojo #

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Total comments: 5

Patch Set 6 : updated unittests #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : fix mac/win linkng #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -76 lines) Patch
M mojo/common/handle_watcher.h View 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/common/handle_watcher.cc View 1 2 3 4 5 8 chunks +113 lines, -46 lines 0 comments Download
M mojo/common/handle_watcher_unittest.cc View 1 2 3 4 5 6 7 11 chunks +46 lines, -20 lines 0 comments Download
M mojo/common/message_pump_mojo.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/common/message_pump_mojo.cc View 1 2 3 4 4 chunks +15 lines, -0 lines 0 comments Download
M mojo/mojo_base.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/application/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/application/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/application/application_runner_chromium.h View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M mojo/public/cpp/application/lib/application_runner_chromium.cc View 1 2 3 4 5 2 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (1 generated)
yzshen1
yzshen@chromium.org changed reviewers: + darin@chormium.org, sky@chromium.org
6 years, 3 months ago (2014-08-27 20:39:53 UTC) #1
darin (slow to review)
darin@chromium.org changed reviewers: + darin@chromium.org
6 years, 3 months ago (2014-08-27 21:20:43 UTC) #2
darin (slow to review)
LGTM https://codereview.chromium.org/506353002/diff/60001/mojo/public/cpp/application/lib/application_runner_chromium.cc File mojo/public/cpp/application/lib/application_runner_chromium.cc (right): https://codereview.chromium.org/506353002/diff/60001/mojo/public/cpp/application/lib/application_runner_chromium.cc#newcode32 mojo/public/cpp/application/lib/application_runner_chromium.cc:32: DCHECK_EQ(base::MessageLoop::TYPE_CUSTOM, message_loop_type_); I don't understand this assertion. Why ...
6 years, 3 months ago (2014-08-27 21:20:43 UTC) #3
sky
https://codereview.chromium.org/506353002/diff/60001/mojo/common/handle_watcher.cc File mojo/common/handle_watcher.cc (right): https://codereview.chromium.org/506353002/diff/60001/mojo/common/handle_watcher.cc#newcode317 mojo/common/handle_watcher.cc:317: class HandleWatcher::StateBase : public base::MessageLoop::DestructionObserver { Is the DestructionObserver ...
6 years, 3 months ago (2014-08-27 21:37:27 UTC) #4
darin (slow to review)
On 2014/08/27 21:37:27, sky wrote: > https://codereview.chromium.org/506353002/diff/60001/mojo/common/handle_watcher.cc > File mojo/common/handle_watcher.cc (right): > > https://codereview.chromium.org/506353002/diff/60001/mojo/common/handle_watcher.cc#newcode317 > ...
6 years, 3 months ago (2014-08-27 21:58:26 UTC) #5
yzshen1
Thanks, Darin and Scott! https://codereview.chromium.org/506353002/diff/60001/mojo/common/handle_watcher.cc File mojo/common/handle_watcher.cc (right): https://codereview.chromium.org/506353002/diff/60001/mojo/common/handle_watcher.cc#newcode317 mojo/common/handle_watcher.cc:317: class HandleWatcher::StateBase : public base::MessageLoop::DestructionObserver ...
6 years, 3 months ago (2014-08-27 22:31:48 UTC) #6
sky
You should add test coverage too. https://codereview.chromium.org/506353002/diff/80001/mojo/common/handle_watcher.cc File mojo/common/handle_watcher.cc (right): https://codereview.chromium.org/506353002/diff/80001/mojo/common/handle_watcher.cc#newcode336 mojo/common/handle_watcher.cc:336: void NotifyHandleReady(MojoResult result) ...
6 years, 3 months ago (2014-08-27 22:49:46 UTC) #7
yzshen1
Thanks Scott. Please take another look. https://codereview.chromium.org/506353002/diff/80001/mojo/common/handle_watcher.cc File mojo/common/handle_watcher.cc (right): https://codereview.chromium.org/506353002/diff/80001/mojo/common/handle_watcher.cc#newcode319 mojo/common/handle_watcher.cc:319: // TODO(yzshen): Very ...
6 years, 3 months ago (2014-08-28 19:26:06 UTC) #8
sky
Everything else looks good https://codereview.chromium.org/506353002/diff/100001/mojo/common/handle_watcher_unittest.cc File mojo/common/handle_watcher_unittest.cc (right): https://codereview.chromium.org/506353002/diff/100001/mojo/common/handle_watcher_unittest.cc#newcode62 mojo/common/handle_watcher_unittest.cc:62: break; NOTREACHED https://codereview.chromium.org/506353002/diff/100001/mojo/common/handle_watcher_unittest.cc#newcode184 mojo/common/handle_watcher_unittest.cc:184: while ...
6 years, 3 months ago (2014-08-28 23:12:19 UTC) #9
yzshen1
Thanks Scott! Please take another look. https://codereview.chromium.org/506353002/diff/100001/mojo/common/handle_watcher_unittest.cc File mojo/common/handle_watcher_unittest.cc (right): https://codereview.chromium.org/506353002/diff/100001/mojo/common/handle_watcher_unittest.cc#newcode62 mojo/common/handle_watcher_unittest.cc:62: break; On 2014/08/28 ...
6 years, 3 months ago (2014-08-29 00:23:45 UTC) #10
sky
LGTM
6 years, 3 months ago (2014-08-29 02:18:50 UTC) #11
yzshen1
The CQ bit was checked by yzshen@chromium.org
6 years, 3 months ago (2014-08-29 02:20:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/506353002/140001
6 years, 3 months ago (2014-08-29 02:21:35 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 03:30:07 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 03:36:51 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/10702)
6 years, 3 months ago (2014-08-29 03:36:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/506353002/160001
6 years, 3 months ago (2014-08-29 18:55:34 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 542fc641c6c9871f7843f63824f954ba9c82931a
6 years, 3 months ago (2014-08-29 22:52:29 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:11:14 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d928bdd26e4800d3ffc76a56877dda8dafae26b4
Cr-Commit-Position: refs/heads/master@{#292702}

Powered by Google App Engine
This is Rietveld 408576698