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

Issue 1793793002: Remove ShellConnection::WaitForInitialize (Closed)

Created:
4 years, 9 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, kalyank, qsr+mojo_chromium.org, sadrul, tfarina, 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

Remove ShellConnection::WaitForInitialize This changes ShellClient::Initialize to expect a response with an optional Connector request rather than a ConnectorPtr being passed in with the call. This allows clients to create their own Connector pipe and lazily connect it to the shell thus avoiding any practical need to wait for an Initialize message. Additionally: - Client instances no longer die on the first Connector pipe error: instead an Instance is kept alive by the shell as long as either the ShellClient pipe is connected OR any Connector pipes are connected. - ShellClientFactory endpoints are now strongly typed instead of being raw message pipe handles. - Some uses of MessagePumpMojo near other changes in this CL have been opportunistically removed. BUG=591742 Committed: https://crrev.com/35f7270e84da5abb0f7895304a53d632efbbfe71 Cr-Commit-Position: refs/heads/master@{#380909}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : fix mus views tests #

Total comments: 6

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -367 lines) Patch
M chrome/app/mash/mash_runner.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/window_tree_client_unittest.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/child/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 1 chunk +2 lines, -11 lines 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.h View 1 2 3 2 chunks +6 lines, -16 lines 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.cc View 1 2 3 4 chunks +13 lines, -31 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M mash/example/window_type_launcher/main.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download
M mojo/edk/embedder/embedder.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/edk/embedder/embedder.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/shell/background/tests/background_shell_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M mojo/shell/public/cpp/lib/application_test_base.cc View 5 chunks +13 lines, -5 lines 0 comments Download
M mojo/shell/public/cpp/lib/shell_connection.cc View 1 2 chunks +31 lines, -16 lines 0 comments Download
M mojo/shell/public/cpp/lib/shell_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/shell/public/cpp/shell_connection.h View 1 3 chunks +24 lines, -11 lines 0 comments Download
M mojo/shell/public/interfaces/shell_client.mojom View 2 chunks +8 lines, -5 lines 0 comments Download
M mojo/shell/runner/child/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/runner/child/runner_connection.h View 1 2 3 1 chunk +21 lines, -15 lines 0 comments Download
M mojo/shell/runner/child/runner_connection.cc View 1 2 3 3 chunks +28 lines, -215 lines 0 comments Download
M mojo/shell/runner/child/test_native_main.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download
M mojo/shell/shell.cc View 1 2 3 4 4 chunks +30 lines, -6 lines 0 comments Download
M mojo/shell/tests/shell/shell_unittest.cc View 5 chunks +11 lines, -1 line 0 comments Download
M ui/views/mus/platform_test_helper_mus.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/screen_mus.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/screen_mus.cc View 1 2 3 chunks +6 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
Ken Rockot(use gerrit already)
This is really all we need to do to prevent clients from blocking. I think ...
4 years, 9 months ago (2016-03-12 20:10:18 UTC) #5
Ben Goodger (Google)
I need to study this some more... will write more later One observation I have... ...
4 years, 9 months ago (2016-03-13 00:58:33 UTC) #6
Ken Rockot(use gerrit already)
On 2016/03/13 at 00:58:33, ben wrote: > I need to study this some more... will ...
4 years, 9 months ago (2016-03-13 01:35:38 UTC) #7
Ben Goodger (Google)
Re the SC&... what I meant was perhaps the primordial pipe could *be* the ShellClient ...
4 years, 9 months ago (2016-03-13 04:16:24 UTC) #8
Ken Rockot(use gerrit already)
I agree that removing SCF is a good idea. I started making that change and ...
4 years, 9 months ago (2016-03-13 16:14:25 UTC) #9
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1793793002/diff/60001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1793793002/diff/60001/content/browser/browser_main_loop.cc#newcode917 content/browser/browser_main_loop.cc:917: mojo::edk::SetParentPipeHandleFromCommandLine(); Also note: I added this API for convenience ...
4 years, 9 months ago (2016-03-13 16:19:10 UTC) #10
Ben Goodger (Google)
ok. lgtm
4 years, 9 months ago (2016-03-13 22:17:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1793793002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1793793002/80001
4 years, 9 months ago (2016-03-13 23:18:07 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-13 23:42:50 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-13 23:43:54 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/35f7270e84da5abb0f7895304a53d632efbbfe71
Cr-Commit-Position: refs/heads/master@{#380909}

Powered by Google App Engine
This is Rietveld 408576698