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

Issue 1736663003: Eliminate Quit() from Shell, and roll Shell & Connector together. (Closed)

Created:
4 years, 10 months ago by Ben Goodger (Google)
Modified:
4 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@14cf
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate Quit() from Shell, and roll Shell & Connector together. R=sky@chromium.org BUG= CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/189e32b3508f0362cc7571af1554c223f353c2cd Cr-Commit-Position: refs/heads/master@{#377702}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -269 lines) Patch
M content/browser/frame_host/frame_mojo_shell.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -9 lines 0 comments Download
M content/browser/frame_host/frame_mojo_shell.cc View 1 chunk +1 line, -10 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -5 lines 0 comments Download
M content/test/data/web_ui_mojo_shell_test.js View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M mojo/shell/application_instance.h View 1 2 3 4 5 6 7 4 chunks +1 line, -17 lines 0 comments Download
M mojo/shell/application_instance.cc View 1 2 3 3 chunks +17 lines, -67 lines 0 comments Download
M mojo/shell/public/cpp/connector.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/shell/public/cpp/lib/application_test_base.cc View 9 chunks +9 lines, -18 lines 0 comments Download
M mojo/shell/public/cpp/lib/connector_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M mojo/shell/public/cpp/lib/connector_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/shell/public/cpp/lib/shell_connection.cc View 1 2 3 4 5 chunks +18 lines, -68 lines 0 comments Download
M mojo/shell/public/cpp/shell.h View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/shell/public/cpp/shell_connection.h View 4 4 chunks +2 lines, -37 lines 0 comments Download
M mojo/shell/public/interfaces/shell.mojom View 1 chunk +0 lines, -18 lines 0 comments Download
M mojo/shell/public/interfaces/shell_client.mojom View 3 chunks +2 lines, -7 lines 0 comments Download
M mojo/shell/runner/child/BUILD.gn View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
A mojo/shell/runner/child/manifest.json View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/shell/runner/host/in_process_native_runner.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
Ben Goodger (Google)
4 years, 10 months ago (2016-02-25 06:10:42 UTC) #2
sky
LGTM https://codereview.chromium.org/1736663003/diff/100001/content/renderer/render_frame_impl.h File content/renderer/render_frame_impl.h (right): https://codereview.chromium.org/1736663003/diff/100001/content/renderer/render_frame_impl.h#newcode1166 content/renderer/render_frame_impl.h:1166: mojo::shell::mojom::ConnectorPtr mojo_shell_; mojo_shell_-> connector_? https://codereview.chromium.org/1736663003/diff/100001/mojo/shell/public/cpp/lib/shell_connection.cc File mojo/shell/public/cpp/lib/shell_connection.cc (right): ...
4 years, 10 months ago (2016-02-25 17:13:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736663003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736663003/120001
4 years, 10 months ago (2016-02-25 17:33:26 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/27161) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-25 17:41:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736663003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736663003/140001
4 years, 10 months ago (2016-02-25 17:48:46 UTC) #11
yzshen1
Will this change result in losing connect requests when an application instance is shutting down? ...
4 years, 10 months ago (2016-02-25 18:54:18 UTC) #12
Ben Goodger (Google)
On 2016/02/25 18:54:18, yzshen1 wrote: > Will this change result in losing connect requests when ...
4 years, 10 months ago (2016-02-25 19:17:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/121597)
4 years, 10 months ago (2016-02-25 20:12:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736663003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736663003/160001
4 years, 10 months ago (2016-02-25 20:45:25 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-25 23:22:04 UTC) #19
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/189e32b3508f0362cc7571af1554c223f353c2cd Cr-Commit-Position: refs/heads/master@{#377702}
4 years, 10 months ago (2016-02-25 23:23:49 UTC) #21
Ben Goodger (Google)
On 2016/02/25 18:54:18, yzshen1 wrote: > Will this change result in losing connect requests when ...
4 years, 9 months ago (2016-03-05 04:32:02 UTC) #22
yzshen1
On 2016/03/05 04:32:02, Ben Goodger (Google) wrote: > On 2016/02/25 18:54:18, yzshen1 wrote: > > ...
4 years, 9 months ago (2016-03-05 08:10:48 UTC) #23
yzshen1
4 years, 9 months ago (2016-03-05 08:26:42 UTC) #24
Message was sent while issue was closed.
On 2016/03/05 08:10:48, yzshen1 wrote:
> On 2016/03/05 04:32:02, Ben Goodger (Google) wrote:
> > On 2016/02/25 18:54:18, yzshen1 wrote:
> > > Will this change result in losing connect requests when an application
> > instance
> > > is shutting down?
> > 
> > Can we think about this from the perspective of a client that wishes to
> connect
> > to some service that is being shut down...
> > 
> > Won't the client ultimately receive broken pipes as a result of the connect
> > request? i.e. the pair of IP pipes will break. In the shell client lib, this
> > will result in the callback specified in
> > Connection::SetRemoteInterfaceProviderConnectionErrorHandler() being called.
> Can
> > they not then recover & re-issue the connect?
> > 
> > This is what I'd expect to happen in the case of a crash too.
> 
> If the client
(Sorry, mistakenly hit send.)

I agree that if the client observes IP disconnection, it can recover/re-issue
the connect.

I raised the question because I wondered whether normal shutdown should be
treated in the same way as crash. For example, normal shutdown may happen more
often than crashes and people may have less tolerance of data loss.

(In our pervious conversation, you pointed out to me that currently we don't
shutdown services. So I am not very concerned about this. Just trying to explain
why I raised this question at the beginning.)

Powered by Google App Engine
This is Rietveld 408576698