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

Issue 2556023002: Added flags for PrintBrowser mode (Closed)

Created:
4 years ago by gozzard
Modified:
3 years, 10 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, nainar, rbpotter, Lei Zhang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added flags for PrintBrowser mode Added the build flag enable_print_browser (defaults to same as enable_print_preview). Added the chrome feature flag kPrintBrowser. Serves as foundation for crrev.com/2566153007 BUG=667547 Design Doc: https://docs.google.com/a/google.com/document/d/1pRu5Lh4SGelhbsqfrLnLQov0o82nVmoWbucz1LYZtu8/edit?usp=sharing

Patch Set 1 #

Patch Set 2 : Replaced enable-print-browser feature flag with command line switch. #

Total comments: 4

Patch Set 3 : Replaced enable-print-browser feature flag with command line switch. #

Patch Set 4 : Replaced enable-print-browser feature flag with command line switch. #

Total comments: 1

Patch Set 5 : Added histograms.xml entry for enable-print-browser #

Patch Set 6 : Fix git weirdness #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 1 comment Download
M printing/features/BUILD.gn View 1 2 3 2 chunks +6 lines, -0 lines 1 comment Download
M printing/features/features.gni View 1 2 3 4 5 1 chunk +5 lines, -0 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (17 generated)
gozzard
PTAL
4 years ago (2016-12-07 05:34:47 UTC) #3
Vitaly Buka (NO REVIEWS)
On 2016/12/07 05:34:47, gozzard wrote: > PTAL This patch just declares unused build flag. It ...
4 years ago (2016-12-12 05:29:25 UTC) #6
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2556023002/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/2556023002/diff/20001/chrome/app/generated_resources.grd#oldcode5173 chrome/app/generated_resources.grd:5173: Inconsistency: scaling vs browser feature https://codereview.chromium.org/2556023002/diff/20001/printing/features/features.gni File printing/features/features.gni (right): ...
4 years ago (2016-12-12 05:29:48 UTC) #7
gozzard
Thanks for the feedback. This issue serves as foundation for crrev.com/2556023002 Most of the logic ...
4 years ago (2016-12-14 23:14:49 UTC) #11
Vitaly Buka (NO REVIEWS)
> This issue serves as foundation for crrev.com/2556023002 This is the same review.
4 years ago (2016-12-14 23:25:06 UTC) #12
gozzard
On 2016/12/14 at 23:25:06, vitalybuka wrote: > > This issue serves as foundation for crrev.com/2556023002 ...
4 years ago (2016-12-15 00:00:17 UTC) #14
Vitaly Buka (NO REVIEWS)
Please move design doc link into the bug
4 years ago (2016-12-15 00:07:45 UTC) #15
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2556023002/diff/60001/printing/features/features.gni File printing/features/features.gni (right): https://codereview.chromium.org/2556023002/diff/60001/printing/features/features.gni#newcode18 printing/features/features.gni:18: What is the purpose of ENABLE_PRINT_BROWSER if its value ...
4 years ago (2016-12-15 00:19:49 UTC) #16
gozzard
On 2016/12/15 at 00:19:49, vitalybuka wrote: > https://codereview.chromium.org/2556023002/diff/60001/printing/features/features.gni > File printing/features/features.gni (right): > > https://codereview.chromium.org/2556023002/diff/60001/printing/features/features.gni#newcode18 ...
4 years ago (2016-12-15 02:56:13 UTC) #17
Vitaly Buka (NO REVIEWS)
> Only the default value of ENABLE_PRINT_BROWSER is tied to ENABLE_PRINT_PREVIEW > This method makes ...
4 years ago (2016-12-15 02:58:36 UTC) #18
Vitaly Buka (NO REVIEWS)
On 2016/12/15 02:58:36, Vitaly Buka wrote: > > Only the default value of ENABLE_PRINT_BROWSER is ...
4 years ago (2016-12-15 02:59:38 UTC) #19
gozzard
On 2016/12/15 at 02:59:38, vitalybuka wrote: > On 2016/12/15 02:58:36, Vitaly Buka wrote: > > ...
4 years ago (2016-12-15 03:14:52 UTC) #20
Vitaly Buka (NO REVIEWS)
> The default was selected somewhat arbitrarily, but I think it is important to > ...
4 years ago (2016-12-15 08:08:10 UTC) #29
gozzard
On 2016/12/15 at 08:08:10, vitalybuka wrote: > > The default was selected somewhat arbitrarily, but ...
4 years ago (2016-12-15 22:50:31 UTC) #30
Vitaly Buka (NO REVIEWS)
4 years ago (2016-12-16 00:18:03 UTC) #32
Vitaly Buka (NO REVIEWS)
+rbpotter +skau Same here
4 years ago (2016-12-16 00:18:59 UTC) #33
skau
I would recommend defaulting the flag to false and validating it on all the platforms ...
4 years ago (2016-12-16 18:05:52 UTC) #34
skau
I would recommend defaulting the flag to false and validating it on all the platforms ...
4 years ago (2016-12-16 18:05:53 UTC) #35
gozzard
4 years ago (2016-12-19 02:34:42 UTC) #36
On 2016/12/16 at 18:05:53, skau wrote:
> I would recommend defaulting the flag to false and validating it on all the
platforms and sending out an ITI on chromium-dev to determine the best bot to
use this feature.

Can do. Consider it on my list.

>
https://codereview.chromium.org/2556023002/diff/100001/chrome/common/chrome_s...
> File chrome/common/chrome_switches.cc (right):
> 
>
https://codereview.chromium.org/2556023002/diff/100001/chrome/common/chrome_s...
> chrome/common/chrome_switches.cc:404: // Enables the Print Browser feature in
print preview.
> Is this accurate?  It seems like this feature affects more than print preview.

Happy to change it if you have something you would prefer, but ultimately Print
Browser just triggers print preview, so I don't see the problem.

>
https://codereview.chromium.org/2556023002/diff/100001/printing/features/BUIL...
> File printing/features/BUILD.gn (right):
> 
>
https://codereview.chromium.org/2556023002/diff/100001/printing/features/BUIL...
> printing/features/BUILD.gn:17: enable_print_preview = true
> instead of forcing print_preview to be true, can you require that it's true
and throw an error otherwise.  This behavior seems surprising.

Excellent idea. I don't know if gn builds support this but will look into it.

>
https://codereview.chromium.org/2556023002/diff/100001/printing/features/feat...
> File printing/features/features.gni (right):
> 
>
https://codereview.chromium.org/2556023002/diff/100001/printing/features/feat...
> printing/features/features.gni:21: enable_print_browser = enable_print_preview
> It is surprising that print preview implies print browser is enabled.  Please
default the value to false.  Print Preview is enabled on most platforms so the
feature will effectively be enabled for most platforms.

As above, can do. As you say we will need to find a build bot for it then.

Powered by Google App Engine
This is Rietveld 408576698