DescriptionMake 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 #Messages
Total messages: 51 (41 generated)
|