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

Issue 2712093002: Enable building headless_shell in MAC. This is an initial implementation with a hidden window, rath… (Closed)

Created:
3 years, 10 months ago by dvallet
Modified:
3 years, 9 months ago
Reviewers:
Sami
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable building headless_shell in MAC. This is an initial implementation with a hidden window, rather than "true" headless. Note: screenshot functionality is not working. This is due to screenshots on mac being created from window bounds withing the screen, so DCHECK fails when window is hidden. See https://cs.chromium.org/chromium/src/ui/snapshot/snapshot_mac.mm?rcl=5fa975c1785e2a47c96471691447846d1be8b51d&l=19 for actual code BUG=687407 Review-Url: https://codereview.chromium.org/2712093002 Cr-Commit-Position: refs/heads/master@{#453147} Committed: https://chromium.googlesource.com/chromium/src/+/1a7c4939603b40622d8dbbb65ef88de5aeb72076

Patch Set 1 #

Patch Set 2 : fixed nit #

Patch Set 3 : fixed linux compilation #

Patch Set 4 : Fixed incorrect Zygote func #

Total comments: 4

Patch Set 5 : move Zygote to public #

Patch Set 6 : revet chrome/BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -2 lines) Patch
M headless/BUILD.gn View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
A headless/lib/browser/headless_browser_impl_mac.mm View 1 chunk +27 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M headless/lib/headless_content_main_delegate.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M headless/lib/headless_content_main_delegate.cc View 1 5 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (29 generated)
dvallet
PTAL I'll send a separate CL for --headless I'm trying a fix for the snapshot ...
3 years, 10 months ago (2017-02-24 10:20:06 UTC) #12
dvallet
PTAL I'll send a separate CL for --headless I'm trying a fix for the snapshot ...
3 years, 10 months ago (2017-02-24 10:21:11 UTC) #14
Sami
lgtm, thanks! https://codereview.chromium.org/2712093002/diff/60001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc (right): https://codereview.chromium.org/2712093002/diff/60001/headless/lib/browser/headless_content_browser_client.cc#newcode173 headless/lib/browser/headless_content_browser_client.cc:173: #if !defined(OS_MACOSX) Let's use this to match ...
3 years, 10 months ago (2017-02-24 11:41:58 UTC) #17
Sami
Re: screenshots, it might be that we'll need to use some kind of offscreen bitmap ...
3 years, 10 months ago (2017-02-24 11:44:37 UTC) #18
dvallet
On 2017/02/24 at 11:44:37, skyostil wrote: > Re: screenshots, it might be that we'll need ...
3 years, 9 months ago (2017-02-27 03:08:13 UTC) #23
dvallet
https://codereview.chromium.org/2712093002/diff/60001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc (right): https://codereview.chromium.org/2712093002/diff/60001/headless/lib/browser/headless_content_browser_client.cc#newcode173 headless/lib/browser/headless_content_browser_client.cc:173: #if !defined(OS_MACOSX) On 2017/02/24 at 11:41:57, Sami wrote: > ...
3 years, 9 months ago (2017-02-27 03:08:28 UTC) #25
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/2712093002/80001
3 years, 9 months ago (2017-02-27 03:08:40 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/373239)
3 years, 9 months ago (2017-02-27 03:15:57 UTC) #29
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/2712093002/100001
3 years, 9 months ago (2017-02-27 03:42:17 UTC) #32
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/2712093002/100001
3 years, 9 months ago (2017-02-27 03:42:45 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 04:40:25 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1a7c4939603b40622d8dbbb65ef8...

Powered by Google App Engine
This is Rietveld 408576698