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

Issue 2096293002: Eliminate usage of InterfacePtr::WaitForIncomingResponse. (Closed)

Created:
4 years, 5 months ago by leonhsl(Using Gerrit)
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, darin (slow to review), kalyank, qsr+mojo_chromium.org, rjkroege, sadrul, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate usage of InterfacePtr::WaitForIncomingResponse. This CL removes InterfacePtr::WaitForIncomingResponse definition and replaces usage of them with either [Sync] call or a nested MessageLoop waiting asynchronously. BUG=622438 Committed: https://crrev.com/83055f715f72c2394efd11b6bb17656899f4c9d0 Cr-Commit-Position: refs/heads/master@{#404579}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Revert net/proxy changes causing trybots failure #

Patch Set 3 : Add net/proxy changes #

Patch Set 4 : Add leveldb/leveldb_service_unittest.cc changes #

Patch Set 5 : Rebase only #

Patch Set 6 : Remove InterfacePtr::WaitForIncomingResponse definition #

Patch Set 7 : Rebase only #

Total comments: 16

Patch Set 8 : Address comments from Elliot, Sky, Yuzhu and Peng #

Patch Set 9 : Fix trybots failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+537 lines, -501 lines) Patch
M components/filesystem/directory_impl_unittest.cc View 9 chunks +58 lines, -60 lines 0 comments Download
M components/filesystem/file_impl_unittest.cc View 32 chunks +201 lines, -191 lines 0 comments Download
M components/filesystem/files_test_base.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/filesystem/public/interfaces/directory.mojom View 1 chunk +2 lines, -0 lines 0 comments Download
M components/filesystem/public/interfaces/file.mojom View 3 chunks +11 lines, -0 lines 0 comments Download
M components/filesystem/public/interfaces/file_system.mojom View 1 chunk +2 lines, -0 lines 0 comments Download
M components/leveldb/leveldb_service_unittest.cc View 1 2 3 4 5 6 7 15 chunks +196 lines, -164 lines 0 comments Download
M components/leveldb/remote_iterator_unittest.cc View 7 chunks +28 lines, -13 lines 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -16 lines 0 comments Download
M mojo/public/cpp/bindings/interface_ptr.h View 1 2 3 4 5 1 chunk +0 lines, -11 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_ptr_state.h View 1 2 3 4 5 2 chunks +0 lines, -14 lines 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -8 lines 0 comments Download
M net/proxy/proxy_resolver_factory_mojo_unittest.cc View 1 2 3 4 3 chunks +13 lines, -2 lines 0 comments Download
M services/catalog/public/interfaces/catalog.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/lib/command_buffer_client_impl.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -20 lines 0 comments Download
M services/ui/public/interfaces/command_buffer.mojom View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 87 (37 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/1
4 years, 5 months ago (2016-06-27 06:22:08 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/234706)
4 years, 5 months ago (2016-06-27 06:55:02 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/20001
4 years, 5 months ago (2016-06-27 07:24:58 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 08:08:29 UTC) #8
leonhsl(Using Gerrit)
This CL is touching all callers of WaitForIncomingResponse except inside mojo/ folder, and I'd like ...
4 years, 5 months ago (2016-06-27 11:03:16 UTC) #10
Ken Rockot(use gerrit already)
I think there's been a fundamental misunderstanding here. Most of these calls to WaitFor* are ...
4 years, 5 months ago (2016-06-29 17:01:29 UTC) #12
yzshen1
(sorry for late reply) +1 for Ken's comment. https://codereview.chromium.org/2096293002/diff/1/net/proxy/proxy_resolver_factory_mojo_unittest.cc File net/proxy/proxy_resolver_factory_mojo_unittest.cc (right): https://codereview.chromium.org/2096293002/diff/1/net/proxy/proxy_resolver_factory_mojo_unittest.cc#newcode273 net/proxy/proxy_resolver_factory_mojo_unittest.cc:273: ASSERT_TRUE(client.encountered_error()); ...
4 years, 5 months ago (2016-06-29 21:36:20 UTC) #13
leonhsl(Using Gerrit)
On 2016/06/29 17:01:29, Ken Rockot wrote: > I think there's been a fundamental misunderstanding here. ...
4 years, 5 months ago (2016-06-29 22:45:17 UTC) #14
leonhsl(Using Gerrit)
https://codereview.chromium.org/2096293002/diff/1/net/proxy/proxy_resolver_factory_mojo_unittest.cc File net/proxy/proxy_resolver_factory_mojo_unittest.cc (right): https://codereview.chromium.org/2096293002/diff/1/net/proxy/proxy_resolver_factory_mojo_unittest.cc#newcode273 net/proxy/proxy_resolver_factory_mojo_unittest.cc:273: ASSERT_TRUE(client.encountered_error()); On 2016/06/29 21:36:20, yzshen1 wrote: > On 2016/06/27 ...
4 years, 5 months ago (2016-06-29 22:53:49 UTC) #15
leonhsl(Using Gerrit)
Sorry seems the cl description is too bad, changed.
4 years, 5 months ago (2016-06-29 23:05:15 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/40001
4 years, 5 months ago (2016-06-30 03:04:43 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 04:44:17 UTC) #21
leonhsl(Using Gerrit)
https://codereview.chromium.org/2096293002/diff/1/net/proxy/proxy_resolver_factory_mojo_unittest.cc File net/proxy/proxy_resolver_factory_mojo_unittest.cc (right): https://codereview.chromium.org/2096293002/diff/1/net/proxy/proxy_resolver_factory_mojo_unittest.cc#newcode273 net/proxy/proxy_resolver_factory_mojo_unittest.cc:273: ASSERT_TRUE(client.encountered_error()); On 2016/06/29 22:53:49, leonhsl wrote: > On 2016/06/29 ...
4 years, 5 months ago (2016-07-01 08:53:50 UTC) #22
Elliot Glaysher
I've gone back and forth on the filesystem case, but given that any straightforward translation ...
4 years, 5 months ago (2016-07-01 21:51:57 UTC) #23
leonhsl(Using Gerrit)
Thanks Elliot a lot for confirmation of filesystem. And after investigated around leveldb codes, I ...
4 years, 5 months ago (2016-07-02 18:26:42 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/80001
4 years, 5 months ago (2016-07-03 07:19:14 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/256671)
4 years, 5 months ago (2016-07-03 08:04:03 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/100001
4 years, 5 months ago (2016-07-03 11:05:48 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/97879)
4 years, 5 months ago (2016-07-03 12:19:31 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/100001
4 years, 5 months ago (2016-07-03 12:57:10 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/97888)
4 years, 5 months ago (2016-07-03 14:03:03 UTC) #37
leonhsl(Using Gerrit)
Uploaded ps#7, all code changes for this CL have been done, affected test cases have ...
4 years, 5 months ago (2016-07-03 15:02:26 UTC) #38
leonhsl(Using Gerrit)
4 years, 5 months ago (2016-07-04 01:33:19 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/100001
4 years, 5 months ago (2016-07-04 05:01:13 UTC) #42
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/211969)
4 years, 5 months ago (2016-07-04 05:07:07 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/120001
4 years, 5 months ago (2016-07-05 02:15:33 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/257099)
4 years, 5 months ago (2016-07-05 02:59:23 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/120001
4 years, 5 months ago (2016-07-05 05:09:18 UTC) #50
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-05 05:58:08 UTC) #52
sky
I'm not a good owner for command_buffer. +peng for that https://codereview.chromium.org/2096293002/diff/120001/mash/catalog_viewer/catalog_viewer.cc File mash/catalog_viewer/catalog_viewer.cc (right): https://codereview.chromium.org/2096293002/diff/120001/mash/catalog_viewer/catalog_viewer.cc#newcode58 ...
4 years, 5 months ago (2016-07-06 15:47:38 UTC) #54
Elliot Glaysher
https://codereview.chromium.org/2096293002/diff/120001/components/leveldb/leveldb_service_unittest.cc File components/leveldb/leveldb_service_unittest.cc (right): https://codereview.chromium.org/2096293002/diff/120001/components/leveldb/leveldb_service_unittest.cc#newcode29 components/leveldb/leveldb_service_unittest.cc:29: if (!quit_closure.is_null()) Is this ever actually null? https://codereview.chromium.org/2096293002/diff/120001/components/leveldb/leveldb_service_unittest.cc#newcode42 components/leveldb/leveldb_service_unittest.cc:42: ...
4 years, 5 months ago (2016-07-06 16:44:31 UTC) #55
yzshen1
Thanks! I am not quite sure whether it is necessary to mark all methods in ...
4 years, 5 months ago (2016-07-06 16:50:26 UTC) #56
Peng
command buffer lgtm with some nits, https://codereview.chromium.org/2096293002/diff/120001/services/ui/public/cpp/lib/command_buffer_client_impl.cc File services/ui/public/cpp/lib/command_buffer_client_impl.cc (right): https://codereview.chromium.org/2096293002/diff/120001/services/ui/public/cpp/lib/command_buffer_client_impl.cc#newcode80 services/ui/public/cpp/lib/command_buffer_client_impl.cc:80: bool handled = ...
4 years, 5 months ago (2016-07-06 17:31:02 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/140001
4 years, 5 months ago (2016-07-07 05:34:10 UTC) #59
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/240076)
4 years, 5 months ago (2016-07-07 05:55:18 UTC) #61
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/160001
4 years, 5 months ago (2016-07-07 06:08:15 UTC) #63
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 07:14:22 UTC) #65
leonhsl(Using Gerrit)
Thanks all a lot for review. Uploaded ps#8 and ps#9 to address comments, PTAnL, Thanks. ...
4 years, 5 months ago (2016-07-07 07:43:12 UTC) #66
yzshen1
LGTM
4 years, 5 months ago (2016-07-07 15:42:33 UTC) #67
Elliot Glaysher
lgtm
4 years, 5 months ago (2016-07-07 17:18:29 UTC) #68
agl
Rubber-stamp LGTM for net/
4 years, 5 months ago (2016-07-07 17:34:03 UTC) #69
leonhsl(Using Gerrit)
Hi, Daniel, would you PTAL for OWNER review of mojom changes: marked several functions as ...
4 years, 5 months ago (2016-07-08 05:06:13 UTC) #71
dcheng
rs lgtm for mojom changes
4 years, 5 months ago (2016-07-08 06:25:37 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/160001
4 years, 5 months ago (2016-07-09 08:25:02 UTC) #75
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 5 months ago (2016-07-09 10:25:41 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/160001
4 years, 5 months ago (2016-07-09 10:28:49 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 5 months ago (2016-07-09 12:29:44 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2096293002/160001
4 years, 5 months ago (2016-07-10 05:24:23 UTC) #83
commit-bot: I haz the power
Failed to apply patch for components/leveldb/leveldb_service_unittest.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 5 months ago (2016-07-10 05:32:10 UTC) #85
commit-bot: I haz the power
4 years, 5 months ago (2016-07-10 05:34:05 UTC) #87
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/83055f715f72c2394efd11b6bb17656899f4c9d0
Cr-Commit-Position: refs/heads/master@{#404579}

Powered by Google App Engine
This is Rietveld 408576698