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

Issue 1419063002: Displaying "simplify page" on print preview by default (Closed)

Created:
5 years, 2 months ago by mvendramini_hp
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mlongaray, leandromanica
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Displaying "simplify page" check box on print preview by default. And also removing the "simplifiable page" detection heuristics from consideration when displaying the "simplify page" check box on print preview. Also adding a cmdline and UI switch to disable it (--disable-print-preview-simplify and accompanying UI switch at chrome://flags) R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org, mdjones@chromium.org, bengr@chromium.org, isherman@chromium.org, mpearson@chromium.org BUG=490809 Committed: https://crrev.com/95abe757ca491cf2521e8e30eb56104519d506c4 Cr-Commit-Position: refs/heads/master@{#357661}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Adding UI switch and commandline flag for disabling simplify print preview #

Total comments: 6

Patch Set 3 : Small refactors, formatting, and removing call to distillation heuristics. #

Total comments: 2

Patch Set 4 : Removing leftover function, as it is no longer used. #

Patch Set 5 : Removing stale comments. #

Total comments: 6

Patch Set 6 : Grammar corrections, alphabetical ordering of variables, small conditional refactor. #

Patch Set 7 : Adding cmdline label to histogram.xml #

Patch Set 8 : Factoring out the disable-print-preview-simplify switch from dom_distiller_switches into chrome_swi… #

Patch Set 9 : Latest rebase (nov 3/15) #

Patch Set 10 : Correcting histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -13 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/dom_distiller/profile_utils.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 3 4 5 6 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 84 (25 generated)
Vitaly Buka (NO REVIEWS)
My assumption is that we are going to enable feature on Print Preview by default. ...
5 years, 2 months ago (2015-10-23 20:05:38 UTC) #3
Lei Zhang
On 2015/10/23 20:05:38, Vitaly Buka wrote: > My assumption is that we are going to ...
5 years, 2 months ago (2015-10-23 21:14:11 UTC) #4
Vitaly Buka (NO REVIEWS)
On 2015/10/23 21:14:11, Lei Zhang wrote: > On 2015/10/23 20:05:38, Vitaly Buka wrote: > > ...
5 years, 2 months ago (2015-10-23 22:02:54 UTC) #5
Vitaly Buka (NO REVIEWS)
I added bug
5 years, 2 months ago (2015-10-23 22:03:22 UTC) #7
Lei Zhang
On 2015/10/23 22:02:54, Vitaly Buka wrote: > On 2015/10/23 21:14:11, Lei Zhang wrote: > > ...
5 years, 2 months ago (2015-10-23 22:06:25 UTC) #8
Vitaly Buka (NO REVIEWS)
Thanks Lei. I'll ask Andrew, I guess we have enough time for this. Cl needs ...
5 years, 2 months ago (2015-10-24 05:48:46 UTC) #9
mvendramini_hp
Some comments, for clarification purposes. So there should be a new flag plus accompanying UI ...
5 years, 1 month ago (2015-10-26 15:51:38 UTC) #10
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resources.grd#newcode5433 chrome/app/generated_resources.grd:5433: + <message name="IDS_FLAGS_ENABLE_DOM_DISTILLER_NAME" desc="Name of the 'enable dom distiller' ...
5 years, 1 month ago (2015-10-26 17:16:23 UTC) #11
Vitaly Buka (NO REVIEWS)
I assume we do not enable distiller in the main menu. So we need different ...
5 years, 1 month ago (2015-10-26 17:16:57 UTC) #12
Vitaly Buka (NO REVIEWS)
Just to clarify, is case I am missing something. Is this patch for https://code.google.com/p/chromium/issues/detail?id=490809
5 years, 1 month ago (2015-10-26 17:21:42 UTC) #13
mvendramini_hp
On 2015/10/26 17:21:42, Vitaly Buka wrote: > Just to clarify, is case I am missing ...
5 years, 1 month ago (2015-10-26 17:49:29 UTC) #14
mvendramini_hp
On 2015/10/26 17:16:57, Vitaly Buka wrote: > I assume we do not enable distiller in ...
5 years, 1 month ago (2015-10-26 17:55:05 UTC) #15
mvendramini_hp
So we will start working on: 1) separating the --enable-dom-distiller activation semantics from the reader ...
5 years, 1 month ago (2015-10-26 17:58:53 UTC) #16
Vitaly Buka (NO REVIEWS)
On 2015/10/26 17:58:53, mvendramini wrote: > So we will start working on: > > 1) ...
5 years, 1 month ago (2015-10-26 18:30:03 UTC) #17
mvendramini_hp
On 2015/10/26 18:30:03, Vitaly Buka wrote: > On 2015/10/26 17:58:53, mvendramini wrote: > > So ...
5 years, 1 month ago (2015-10-26 18:47:06 UTC) #18
mvendramini_hp
On 2015/10/26 18:47:06, mvendramini wrote: > On 2015/10/26 18:30:03, Vitaly Buka wrote: > > On ...
5 years, 1 month ago (2015-10-27 13:25:00 UTC) #19
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/about_flags.cc#newcode1342 chrome/browser/about_flags.cc:1342: #if !defined(OS_ANDROID) this should be #if defined(ENABLE_PRINT_PREVIEW) https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File ...
5 years, 1 month ago (2015-10-29 00:30:19 UTC) #20
mvendramini_hp
Acknowledging the removal of the distillation detection heuristics call (IsDistillablePage). Our original plan was to ...
5 years, 1 month ago (2015-10-29 11:57:18 UTC) #21
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode1303 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1303: void PrintPreviewHandler::HandleIsPageDistillableResult(bool distillable) { Please remove HandleIsPageDistillableResult as ...
5 years, 1 month ago (2015-10-29 18:44:02 UTC) #22
mvendramini_hp
Patchset 3 is in: removing leftover function. https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode1303 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1303: void PrintPreviewHandler::HandleIsPageDistillableResult(bool ...
5 years, 1 month ago (2015-10-29 18:52:32 UTC) #23
mvendramini_hp
On 2015/10/29 18:52:32, mvendramini wrote: > Patchset 4 is in: removing leftover function. > > ...
5 years, 1 month ago (2015-10-29 18:52:56 UTC) #24
Vitaly Buka (NO REVIEWS)
lgtm
5 years, 1 month ago (2015-10-29 18:59:28 UTC) #25
mvendramini_hp
On 2015/10/29 18:59:28, Vitaly Buka wrote: > lgtm I forgot to remove a stale comment ...
5 years, 1 month ago (2015-10-29 19:07:53 UTC) #26
Lei Zhang
https://codereview.chromium.org/1419063002/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/80001/chrome/app/generated_resources.grd#newcode5432 chrome/app/generated_resources.grd:5432: + Disables simplify page on print preview grammar: Disable ...
5 years, 1 month ago (2015-10-29 19:14:57 UTC) #27
mvendramini_hp
Obs: On the conditional refactor (the earlier return) we used git cl format to decide ...
5 years, 1 month ago (2015-10-30 11:05:36 UTC) #28
Lei Zhang
On 2015/10/30 11:05:36, mvendramini wrote: > Obs: On the conditional refactor (the earlier return) we ...
5 years, 1 month ago (2015-10-30 16:36:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419063002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419063002/100001
5 years, 1 month ago (2015-10-30 17:07:53 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/114356)
5 years, 1 month ago (2015-10-30 17:18:29 UTC) #34
mvendramini_hp
On 2015/10/30 17:18:29, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-10-30 18:26:02 UTC) #35
Lei Zhang
On 2015/10/30 18:26:02, mvendramini wrote: > On 2015/10/30 17:18:29, commit-bot: I haz the power wrote: ...
5 years, 1 month ago (2015-10-30 18:30:57 UTC) #36
mvendramini_hp
On 2015/10/30 18:30:57, Lei Zhang wrote: > On 2015/10/30 18:26:02, mvendramini wrote: > > On ...
5 years, 1 month ago (2015-10-30 18:42:54 UTC) #38
Vitaly Buka (NO REVIEWS)
Flags needs to be added into that xml file. Example: https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-notifications&sq=package:chromium&type=cs
5 years, 1 month ago (2015-10-30 19:40:48 UTC) #39
Vitaly Buka (NO REVIEWS)
On 2015/10/30 19:40:48, Vitaly Buka wrote: > Flags needs to be added into that xml ...
5 years, 1 month ago (2015-10-30 19:44:04 UTC) #40
Lei Zhang
On 2015/10/30 19:44:04, Vitaly Buka wrote: > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > ...
5 years, 1 month ago (2015-10-30 20:15:39 UTC) #41
mvendramini_hp
On 2015/10/30 19:40:48, Vitaly Buka wrote: > Flags needs to be added into that xml ...
5 years, 1 month ago (2015-11-03 16:34:05 UTC) #42
mvendramini_hp
On 2015/10/30 19:44:04, Vitaly Buka wrote: > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > ...
5 years, 1 month ago (2015-11-03 16:35:17 UTC) #43
Lei Zhang
On 2015/11/03 16:35:17, mvendramini wrote: > On 2015/10/30 19:44:04, Vitaly Buka wrote: > > On ...
5 years, 1 month ago (2015-11-03 16:59:28 UTC) #44
mvendramini_hp
On 2015/11/03 16:59:28, Lei Zhang wrote: > On 2015/11/03 16:35:17, mvendramini wrote: > > On ...
5 years, 1 month ago (2015-11-03 17:03:09 UTC) #45
Lei Zhang
On 2015/11/03 17:03:09, mvendramini wrote: > On 2015/11/03 16:59:28, Lei Zhang wrote: > > On ...
5 years, 1 month ago (2015-11-03 17:18:32 UTC) #46
mvendramini_hp
On 2015/11/03 17:18:32, Lei Zhang wrote: > On 2015/11/03 17:03:09, mvendramini wrote: > > On ...
5 years, 1 month ago (2015-11-03 18:07:53 UTC) #47
bengr
*dom_distiller* lgtm
5 years, 1 month ago (2015-11-03 18:15:12 UTC) #50
Vitaly Buka (NO REVIEWS)
Thanks, I suspect this change is conflicting with current master. I can try to click ...
5 years, 1 month ago (2015-11-03 18:16:06 UTC) #51
mvendramini_hp
We detected there's a parallel CL to show the "simplify print preview" checkbox by default: ...
5 years, 1 month ago (2015-11-03 18:16:10 UTC) #52
Vitaly Buka (NO REVIEWS)
> Please advise; should we wait, or rebase, or something else ? Yes, you need ...
5 years, 1 month ago (2015-11-03 18:17:39 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419063002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419063002/140001
5 years, 1 month ago (2015-11-03 18:18:24 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/139714) android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-03 18:22:37 UTC) #59
mvendramini_hp
On 2015/11/03 18:17:39, Vitaly Buka wrote: > > Please advise; should we wait, or rebase, ...
5 years, 1 month ago (2015-11-03 19:49:17 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419063002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419063002/160001
5 years, 1 month ago (2015-11-03 19:58:25 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/115156)
5 years, 1 month ago (2015-11-03 20:16:57 UTC) #67
mvendramini_hp
Added more reviewers; still histograms.xml needs revision.
5 years, 1 month ago (2015-11-03 20:22:29 UTC) #68
Mark P
histograms.xml lgtm
5 years, 1 month ago (2015-11-03 20:22:45 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419063002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419063002/160001
5 years, 1 month ago (2015-11-03 20:26:24 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419063002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419063002/180001
5 years, 1 month ago (2015-11-03 20:47:25 UTC) #75
mvendramini_hp
vitaly@ and thestig@ (Lei@): Do you think it would be a good call to edit ...
5 years, 1 month ago (2015-11-03 21:17:08 UTC) #76
Vitaly Buka (NO REVIEWS)
> Do you think it would be a good call to edit the name of ...
5 years, 1 month ago (2015-11-03 22:07:55 UTC) #78
mvendramini_hp
On 2015/11/03 22:07:55, Vitaly Buka wrote: > > Do you think it would be a ...
5 years, 1 month ago (2015-11-03 22:26:24 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419063002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419063002/180001
5 years, 1 month ago (2015-11-03 22:27:59 UTC) #82
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-03 22:43:29 UTC) #83
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 22:44:26 UTC) #84
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/95abe757ca491cf2521e8e30eb56104519d506c4
Cr-Commit-Position: refs/heads/master@{#357661}

Powered by Google App Engine
This is Rietveld 408576698