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

Issue 2489673005: [headless] Make browser service manifest overlay configurable. (Closed)

Created:
4 years, 1 month ago by Eric Seckler
Modified:
4 years, 1 month ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, devtools-reviews_chromium.org, darin (slow to review), pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[headless] Make browser service manifest overlay configurable. Headless embedders need to specify mojo services that they expose to the renderer. This patch lets them list the services in HeadlessBrowser::Options and generates the corresponding browser manifest overlay in HeadlessContentBrowserClient. BUG=546953 Committed: https://crrev.com/9ff09983783153837ac7337de33077c6ff2f1ba1 Cr-Commit-Position: refs/heads/master@{#432151}

Patch Set 1 : v1 load from resource id provided in options. #

Total comments: 2

Patch Set 2 : v2 building a catalog::Entry from options dynamically. #

Patch Set 3 : Remove dep on catalog. #

Total comments: 4

Patch Set 4 : address Sami's comments. #

Total comments: 4

Patch Set 5 : fix includes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -21 lines) Patch
D headless/lib/browser/headless_browser_manifest_overlay.json View 1 chunk +0 lines, -12 lines 0 comments Download
A + headless/lib/browser/headless_browser_manifest_overlay_template.json View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.cc View 1 2 3 4 3 chunks +26 lines, -4 lines 0 comments Download
M headless/lib/embedder_mojo_browsertest.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M headless/lib/resources/headless_lib_resources.grd View 1 2 1 chunk +1 line, -1 line 0 comments Download
M headless/public/headless_browser.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M headless/public/headless_browser.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M headless/test/headless_browser_test.h View 1 chunk +4 lines, -0 lines 0 comments Download
M headless/test/headless_browser_test.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M headless/test/headless_test_launcher.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (9 generated)
Eric Seckler
Quick draft trying to make the overlay json resource configurable. Sadly, this doesn't actually work, ...
4 years, 1 month ago (2016-11-09 18:00:24 UTC) #2
Sami
How about instead of specifying the resource file we ask the embedder to list the ...
4 years, 1 month ago (2016-11-09 18:35:52 UTC) #3
Eric Seckler
On 2016/11/09 18:35:52, Sami wrote: > How about instead of specifying the resource file we ...
4 years, 1 month ago (2016-11-10 09:58:50 UTC) #4
Eric Seckler
+ben@: Can you advise us whether it's okay to depend on catalog::Entry, or if we ...
4 years, 1 month ago (2016-11-10 14:21:35 UTC) #8
Ben Goodger (Google)
On 2016/11/10 14:21:35, Eric Seckler wrote: > +ben@: Can you advise us whether it's okay ...
4 years, 1 month ago (2016-11-10 15:03:24 UTC) #9
Ben Goodger (Google)
+ken fyi
4 years, 1 month ago (2016-11-10 15:03:57 UTC) #11
Eric Seckler
Thanks, Ben! On 2016/11/10 15:03:24, Ben Goodger (Google) wrote: > On 2016/11/10 14:21:35, Eric Seckler ...
4 years, 1 month ago (2016-11-10 15:22:13 UTC) #12
Eric Seckler
After a chat with Sami, we agreed that we'd like an API that avoids exposing ...
4 years, 1 month ago (2016-11-11 15:24:51 UTC) #13
Sami
Thanks, I think this is a pretty tidy way of handling this. https://codereview.chromium.org/2489673005/diff/40001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc ...
4 years, 1 month ago (2016-11-11 17:41:16 UTC) #14
Eric Seckler
https://codereview.chromium.org/2489673005/diff/40001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc (right): https://codereview.chromium.org/2489673005/diff/40001/headless/lib/browser/headless_content_browser_client.cc#newcode30 headless/lib/browser/headless_content_browser_client.cc:30: } // namspace On 2016/11/11 17:41:15, Sami wrote: > ...
4 years, 1 month ago (2016-11-14 10:23:14 UTC) #15
Sami
lgtm, thanks for fixing this! https://codereview.chromium.org/2489673005/diff/60001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc (right): https://codereview.chromium.org/2489673005/diff/60001/headless/lib/browser/headless_content_browser_client.cc#newcode8 headless/lib/browser/headless_content_browser_client.cc:8: #include <set> Needed? https://codereview.chromium.org/2489673005/diff/60001/headless/public/headless_browser.h ...
4 years, 1 month ago (2016-11-14 21:22:37 UTC) #16
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/2489673005/80001
4 years, 1 month ago (2016-11-15 08:46:30 UTC) #19
Eric Seckler
https://codereview.chromium.org/2489673005/diff/60001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc (right): https://codereview.chromium.org/2489673005/diff/60001/headless/lib/browser/headless_content_browser_client.cc#newcode8 headless/lib/browser/headless_content_browser_client.cc:8: #include <set> On 2016/11/14 21:22:37, Sami (slow -- traveling) ...
4 years, 1 month ago (2016-11-15 08:46:58 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-15 09:18:52 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 09:21:09 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9ff09983783153837ac7337de33077c6ff2f1ba1
Cr-Commit-Position: refs/heads/master@{#432151}

Powered by Google App Engine
This is Rietveld 408576698