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

Issue 2666503002: Make headless_shell target compile for Windows (Closed)

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

Description

Make headless_shell target compile for Windows: - Add necessary configs so exec file can be compiled - Enable logging options (this is enforced in windows, otherwise logging path will fail with DCHECK) - Change screenshot file writing to use file_proxy, since file_stream does not work properly in linux: it's harcoded to use message_loop_io to do the write, which does not work in Windows since the the FileThread is attached to the ui message loop - Adds special rules in devtools code generation scripts to avoid collision with windows specific macros (like ERR) - Changes the way the command line is parsed so its compatible with Windows - Modify headless.gn args to be compatible with windows also. - And some nits under #if defined(OS_WIN) BUG=686608 Review-Url: https://codereview.chromium.org/2666503002 Cr-Commit-Position: refs/heads/master@{#449906} Committed: https://chromium.googlesource.com/chromium/src/+/79dd3437b6e5dddaafeca8a50d07a0acd82b3c57

Patch Set 1 #

Patch Set 2 : updated stream, fix nits with tabs #

Patch Set 3 : Removed changes meant for cr/2624343002 #

Patch Set 4 : Nit in headless_shell.h #

Patch Set 5 : Removed another change from cl/2624343002 #

Patch Set 6 : Update upstream #

Patch Set 7 : Fix change reserved word #

Patch Set 8 : Modify headless.gn to be usable in windows #

Patch Set 9 : Revert headless.gn changes and update upstream #

Patch Set 10 : Update upstream #

Patch Set 11 : revert .gn #

Total comments: 7

Patch Set 12 : Updated to upstream, removed logging #

Patch Set 13 : Updated to upstream #

Total comments: 2

Patch Set 14 : Fix initlogging placing, always enable logging in Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -46 lines) Patch
M headless/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -0 lines 0 comments Download
M headless/app/headless_shell.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -4 lines 0 comments Download
M headless/app/headless_shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +30 lines, -26 lines 0 comments Download
M headless/lib/browser/devtools_api/client_api_generator.py View 1 3 chunks +9 lines, -4 lines 0 comments Download
M headless/lib/browser/devtools_api/domain_cc.template View 2 chunks +2 lines, -2 lines 0 comments Download
M headless/lib/browser/devtools_api/domain_h.template View 2 chunks +2 lines, -2 lines 0 comments Download
M headless/lib/browser/headless_browser_impl.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M headless/lib/headless_browser_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M headless/lib/headless_content_main_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M headless/lib/headless_content_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M headless/public/headless_shell.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M headless/public/util/deterministic_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 51 (41 generated)
dvallet
3 years, 10 months ago (2017-01-30 06:18:09 UTC) #8
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/2666503002/60001
3 years, 10 months ago (2017-01-30 06:18:20 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 10 months ago (2017-01-30 06:18:21 UTC) #11
dvallet
PTAL, this is ready to review
3 years, 10 months ago (2017-02-09 06:11:39 UTC) #33
Sami
Looks great! Just a couple of small comments. https://codereview.chromium.org/2666503002/diff/200001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2666503002/diff/200001/headless/BUILD.gn#newcode386 headless/BUILD.gn:386: if ...
3 years, 10 months ago (2017-02-09 17:51:40 UTC) #34
dvallet
https://codereview.chromium.org/2666503002/diff/200001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2666503002/diff/200001/headless/BUILD.gn#newcode386 headless/BUILD.gn:386: if (is_win) { On 2017/02/09 at 17:51:40, Sami wrote: ...
3 years, 10 months ago (2017-02-10 05:29:49 UTC) #36
Sami
Thanks, lgtm! https://codereview.chromium.org/2666503002/diff/240001/headless/app/headless_shell.cc File headless/app/headless_shell.cc (right): https://codereview.chromium.org/2666503002/diff/240001/headless/app/headless_shell.cc#newcode356 headless/app/headless_shell.cc:356: LOG(ERROR) << "About to call write: " ...
3 years, 10 months ago (2017-02-10 13:56:22 UTC) #40
dvallet
https://codereview.chromium.org/2666503002/diff/200001/headless/app/headless_shell_main.cc File headless/app/headless_shell_main.cc (right): https://codereview.chromium.org/2666503002/diff/200001/headless/app/headless_shell_main.cc#newcode11 headless/app/headless_shell_main.cc:11: base::FilePath log_filename; On 2017/02/10 05:29:49, dvallet wrote: > On ...
3 years, 10 months ago (2017-02-13 00:50:34 UTC) #41
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/2666503002/260001
3 years, 10 months ago (2017-02-13 03:05:02 UTC) #48
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 03:12:29 UTC) #51
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/79dd3437b6e5dddaafeca8a50d07...

Powered by Google App Engine
This is Rietveld 408576698