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

Issue 1442893002: Move Shell connection to content (Closed)

Created:
5 years, 1 month ago by Ben Goodger (Google)
Modified:
5 years, 1 month ago
Reviewers:
jam
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_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@i2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Shell connection to content. I want to be able to use Mojo in content, so I think it makes sense that the shell bind step lives in content too. 1. Moves MojoRunnerState to content/common and renames it to MojoShellConnection. This class will be available in any process that creates an impl prior to running the main message loop. 2. Modifies ChildProcessLauncher to create a platform channel pair and put the client handle on the command line of the child process, and registers the server handle with the external shell. This will allow the child process to bind an Application request if it wants. TODO: What if the child process doesn't bind it? What happens to the instance created in the external shell? TODO: ChildProcessLauncher is a convenient chokepoint. It means the shell handle is passed to all child processes created by content. Do we want to do this? I think it's OK for now since this code is only triggered if Chrome itself is run from within the external shell. Before we can move this to production I think CreateInstanceForHandle is going to have to take a CapabilityFilter. R=jam@chromium.org http://crbug.com/551253 Committed: https://crrev.com/03b7b9d5d01d4b23362a1b9fcd13900fbb11286c Cr-Commit-Position: refs/heads/master@{#359770}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Total comments: 1

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : --no-find-copies #

Patch Set 18 : --no-find-copies #

Patch Set 19 : . #

Patch Set 20 : . #

Patch Set 21 : . #

Patch Set 22 : . #

Patch Set 23 : . #

Patch Set 24 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -167 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 3 chunks +0 lines, -12 lines 0 comments Download
D chrome/browser/mojo_runner_state.h View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/mojo_runner_state.cc View 1 chunk +0 lines, -46 lines 0 comments Download
D chrome/browser/mojo_runner_util.h View 1 chunk +0 lines, -11 lines 0 comments Download
D chrome/browser/mojo_runner_util.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/native_browser_frame_factory_auralinux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/native_browser_frame_factory_aurawin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/native_browser_frame_factory_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -2 lines 0 comments Download
M components/mus/example/mock_sysui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M components/mus/example/views_examples/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M components/mus/example/window_type_launcher/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M components/mus/example/wm/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +26 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +61 lines, -1 line 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +12 lines, -1 line 0 comments Download
M content/common/mojo/DEPS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A content/common/mojo/mojo_shell_connection_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +65 lines, -0 lines 0 comments Download
A content/common/mojo/mojo_shell_connection_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +95 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/mojo_shell_connection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +59 lines, -0 lines 0 comments Download
M mandoline/ui/desktop_ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M mandoline/ui/omnibox/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M mojo/runner/child/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M mojo/shell/application_manager.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/shell/application_manager.mojom View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/shell/application_manager_apptest_driver.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +30 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
Ben Goodger (Google)
5 years, 1 month ago (2015-11-13 20:38:22 UTC) #5
jam
lgtm https://codereview.chromium.org/1442893002/diff/240001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/1442893002/diff/240001/content/browser/child_process_launcher.cc#newcode531 content/browser/child_process_launcher.cc:531: command_line->AppendSwitch("use-new-edk"); are you sure this is needed? https://code.google.com/p/chromium/codesearch#search/&q=use-new-edk%20file:content&sq=package:chromium&type=cs
5 years, 1 month ago (2015-11-13 23:28:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442893002/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442893002/450001
5 years, 1 month ago (2015-11-15 07:39:27 UTC) #9
commit-bot: I haz the power
Committed patchset #24 (id:450001)
5 years, 1 month ago (2015-11-15 12:13:20 UTC) #10
commit-bot: I haz the power
5 years, 1 month ago (2015-11-15 12:15:09 UTC) #11
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/03b7b9d5d01d4b23362a1b9fcd13900fbb11286c
Cr-Commit-Position: refs/heads/master@{#359770}

Powered by Google App Engine
This is Rietveld 408576698