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

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed)

Created:
4 years, 4 months ago by Ben Goodger (Google)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Before this change, renderers use the incoming InterfaceProvider on the connection that launched them. This is problematic as the interfaces exposed over this connection are not filtered by service manager capability policy. With this change, renderers connect back to the browser & request interfaces. Currently we expose all interfaces (short term hack). This will be whitelisted shortly. R=rockot@chromium.org BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/5be0b9131772f071eebd3028f1d85d7d0a82705e Cr-Commit-Position: refs/heads/master@{#409395}

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: 14

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Total comments: 1

Patch Set 20 : . #

Patch Set 21 : . #

Total comments: 1

Patch Set 22 : . #

Patch Set 23 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -171 lines) Patch
M android_webview/browser/aw_browser_main_parts.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +3 lines, -2 lines 0 comments Download
M android_webview/browser/aw_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +4 lines, -3 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +11 lines, -7 lines 0 comments Download
M blimp/engine/app/blimp_content_browser_client.cc View 1 2 3 4 5 7 8 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -2 lines 0 comments Download
M content/browser/android/interface_registry_android_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/battery_status/battery_monitor_integration_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +1 line, -1 line 0 comments Download
D content/browser/mojo/constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -17 lines 0 comments Download
D content/browser/mojo/constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -29 lines 0 comments Download
M content/browser/mojo/mojo_child_connection.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -7 lines 0 comments Download
M content/browser/mojo/mojo_child_connection.cc View 1 2 3 4 5 6 7 8 7 chunks +7 lines, -15 lines 0 comments Download
M content/browser/mojo/mojo_shell_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +132 lines, -60 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/child/child_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +26 lines, -2 lines 0 comments Download
A + content/common/mojo/constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
A + content/common/mojo/constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +29 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -1 line 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -1 line 0 comments Download
M content/public/browser/browser_context.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M content/public/common/mojo_shell_connection.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.h 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, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc 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 +11 lines, -3 lines 0 comments Download
M services/shell/public/cpp/interface_registry.h View 2 chunks +4 lines, -0 lines 0 comments Download
M services/shell/public/cpp/lib/interface_registry.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (65 generated)
Ben Goodger (Google)
4 years, 4 months ago (2016-07-29 06:05:15 UTC) #32
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2183703005/diff/240001/blimp/engine/app/blimp_content_browser_client.cc File blimp/engine/app/blimp_content_browser_client.cc (right): https://codereview.chromium.org/2183703005/diff/240001/blimp/engine/app/blimp_content_browser_client.cc#newcode52 blimp/engine/app/blimp_content_browser_client.cc:52: ui_task_runner); nit: I'd rather just use base::ThreadTaskRunnerHandle::Get(), but BrowserThread ...
4 years, 4 months ago (2016-07-29 17:09:46 UTC) #35
Ben Goodger (Google)
Updated PTAL https://codereview.chromium.org/2183703005/diff/240001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2183703005/diff/240001/content/browser/renderer_host/render_process_host_impl.cc#newcode482 content/browser/renderer_host/render_process_host_impl.cc:482: if (child_identity_.name() != remote_identity.name() || On 2016/07/29 ...
4 years, 4 months ago (2016-07-29 19:35:02 UTC) #44
Ben Goodger (Google)
Updated again. On Fri, Jul 29, 2016 at 12:35 PM, <ben@chromium.org> wrote: > Updated PTAL ...
4 years, 4 months ago (2016-07-29 21:50:42 UTC) #55
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2183703005/diff/200002/content/common/mojo/mojo_shell_connection_impl.cc File content/common/mojo/mojo_shell_connection_impl.cc (right): https://codereview.chromium.org/2183703005/diff/200002/content/common/mojo/mojo_shell_connection_impl.cc#newcode96 content/common/mojo/mojo_shell_connection_impl.cc:96: for (auto it = connection_filters_.begin(); it != connection_filters_.end(); ...
4 years, 4 months ago (2016-07-29 23:20:47 UTC) #58
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/2183703005/370001
4 years, 4 months ago (2016-07-29 23:23:43 UTC) #61
commit-bot: I haz the power
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/113313)
4 years, 4 months ago (2016-07-30 00:02:54 UTC) #63
Ben Goodger (Google)
boliu: android_webview/* changes to browser context as discussed.
4 years, 4 months ago (2016-08-02 19:08:59 UTC) #67
boliu
lgtm % nit https://codereview.chromium.org/2183703005/diff/390001/android_webview/browser/aw_browser_main_parts.h File android_webview/browser/aw_browser_main_parts.h (right): https://codereview.chromium.org/2183703005/diff/390001/android_webview/browser/aw_browser_main_parts.h#newcode39 android_webview/browser/aw_browser_main_parts.h:39: AwBrowserContext* browser_context_ = nullptr; can be ...
4 years, 4 months ago (2016-08-02 19:22:55 UTC) #68
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/2183703005/410001
4 years, 4 months ago (2016-08-02 20:18:37 UTC) #71
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/2183703005/430001
4 years, 4 months ago (2016-08-02 22:30:26 UTC) #74
commit-bot: I haz the power
Committed patchset #23 (id:430001)
4 years, 4 months ago (2016-08-03 00:17:40 UTC) #76
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 00:20:39 UTC) #78
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/5be0b9131772f071eebd3028f1d85d7d0a82705e
Cr-Commit-Position: refs/heads/master@{#409395}

Powered by Google App Engine
This is Rietveld 408576698