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

Issue 2808653002: make headless lib complie when enable_basic_printing is set to false (Closed)

Created:
3 years, 8 months ago by jzfeng
Modified:
3 years, 8 months ago
Reviewers:
Lei Zhang, Eric Seckler
CC:
chromium-reviews, devtools-reviews_chromium.org, pfeldman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

make headless lib complie when enable_basic_printing is set to false There is a bug that headless lib doesn't complie when users set enable_basic_printing to false in their args.gn file. The patch ensure that the printing support is only avaliable when enable_basic_printing is true. When it is false, the PrintToPDF devtools command would return an error instead. BUG=603559 Review-Url: https://codereview.chromium.org/2808653002 Cr-Commit-Position: refs/heads/master@{#463381} Committed: https://chromium.googlesource.com/chromium/src/+/143099e30f56d3d41c6e1fb49230586472751aac

Patch Set 1 #

Patch Set 2 : add a DCHECK #

Total comments: 4

Patch Set 3 : minor fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -9 lines) Patch
M headless/BUILD.gn View 1 2 5 chunks +17 lines, -6 lines 0 comments Download
M headless/lib/browser/headless_devtools_manager_delegate.cc View 1 2 4 chunks +13 lines, -1 line 0 comments Download
M headless/lib/browser/headless_web_contents_impl.cc View 2 chunks +7 lines, -1 line 0 comments Download
M headless/lib/renderer/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
M headless/lib/renderer/headless_content_renderer_client.cc View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
jzfeng
This is a patch to fix the bug reported in https://bugs.chromium.org/p/chromium/issues/detail?id=603559#c17. PTAL. Thanks!
3 years, 8 months ago (2017-04-10 02:28:49 UTC) #5
Eric Seckler
lgtm
3 years, 8 months ago (2017-04-10 06:48:02 UTC) #8
Lei Zhang
lgtm https://codereview.chromium.org/2808653002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2808653002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode192 headless/lib/browser/headless_devtools_manager_delegate.cc:192: #if !BUILDFLAG(ENABLE_BASIC_PRINTING) Maybe remove the '!' and swap ...
3 years, 8 months ago (2017-04-10 17:38:41 UTC) #9
jzfeng
Thanks for the review! https://codereview.chromium.org/2808653002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2808653002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode192 headless/lib/browser/headless_devtools_manager_delegate.cc:192: #if !BUILDFLAG(ENABLE_BASIC_PRINTING) On 2017/04/10 at ...
3 years, 8 months ago (2017-04-10 18:32:27 UTC) #11
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/2808653002/40001
3 years, 8 months ago (2017-04-10 18:33:51 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 20:19:03 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/143099e30f56d3d41c6e1fb49230...

Powered by Google App Engine
This is Rietveld 408576698