|
|
Created:
5 years, 2 months ago by mvendramini_hp Modified:
5 years, 1 month ago Reviewers:
Lei Zhang, Mark P, nyquist, bengr, Nico, mdjones, Vitaly Buka corp, Ilya Sherman, Vitaly Buka (NO REVIEWS) 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. |
DescriptionDisplaying "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 #
Messages
Total messages: 84 (25 generated)
Description was changed from ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org BUG= ========== to ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org BUG= ==========
mvendramini@hp.com changed reviewers: + thestig@chromium.org
My assumption is that we are going to enable feature on Print Preview by default. And flag is needed to be able to shutdown if needed Please attach the BUG. https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... chrome/app/generated_resources.grd:5433: + <message name="IDS_FLAGS_ENABLE_DOM_DISTILLER_NAME" desc="Name of the 'enable dom distiller' lab"> this is flag about print preview only, so it should be called appropriatly IDS_FLAGS_DISABLE_DISTILLER_IN_PRINT_PREVIEW https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... chrome/app/generated_resources.grd:5434: + Enable simplify page on print preview We need flag to disable feature, as it's going to be enabled by default https://codereview.chromium.org/1419063002/diff/1/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1419063002/diff/1/chrome/browser/about_flags.... chrome/browser/about_flags.cc:650: ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDomDistiller, please take a look at "disable-touch-adjustment" for example https://codereview.chromium.org/1419063002/diff/1/components/dom_distiller/co... File components/dom_distiller/core/dom_distiller_switches.h (right): https://codereview.chromium.org/1419063002/diff/1/components/dom_distiller/co... components/dom_distiller/core/dom_distiller_switches.h:17: extern const char kDisableDomDistiller[]; enable/disable distiller also all item into chrome menu and enables reader mode. I guess goal to to change print preview and not that behavior. So this switch should be next to other print preview switches
On 2015/10/23 20:05:38, Vitaly Buka wrote: > My assumption is that we are going to enable feature on Print Preview by > default. And flag is needed to be able to shutdown if needed Is this feature actually ready to be on by default? Why is there no filled in BUG= for this?
On 2015/10/23 21:14:11, Lei Zhang wrote: > On 2015/10/23 20:05:38, Vitaly Buka wrote: > > My assumption is that we are going to enable feature on Print Preview by > > default. And flag is needed to be able to shutdown if needed > > Is this feature actually ready to be on by default? Why is there no filled in > BUG= for this? You can try with current canary with "--enable-dom-distiller --reader-mode-heuristics=alwaystrue" I see only this: https://codereview.chromium.org/1294663003/ Yes, according my knowledge. Feature is on by default means just new check-box in print preview UI. User will need to turn this check box explicitly to apply this processing. So there should be no regression in existing functionality.
Description was changed from ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org BUG= ========== to ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org BUG=490809 ==========
I added bug
On 2015/10/23 22:02:54, Vitaly Buka wrote: > On 2015/10/23 21:14:11, Lei Zhang wrote: > > On 2015/10/23 20:05:38, Vitaly Buka wrote: > > > My assumption is that we are going to enable feature on Print Preview by > > > default. And flag is needed to be able to shutdown if needed > > > > Is this feature actually ready to be on by default? Why is there no filled in > > BUG= for this? > > You can try with current canary with "--enable-dom-distiller > --reader-mode-heuristics=alwaystrue" > > I see only this: https://codereview.chromium.org/1294663003/ Ye, I'll try to get back to that, but that's mostly just cleanup. > Yes, according my knowledge. Feature is on by default means just new check-box > in print preview UI. > User will need to turn this check box explicitly to apply this processing. So > there > should be no regression in existing functionality. Sure, but don't new user facing features usually go through some launch review process internally?
Thanks Lei. I'll ask Andrew, I guess we have enough time for this. Cl needs to be update in any case if it passes launch review.
Some comments, for clarification purposes. So there should be a new flag plus accompanying UI switch just for the Simplify page check box on the print preview dialog? And it should be unrelated to --enable-dom-distiller? Please verify this assertion and comment, thanks. https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... chrome/app/generated_resources.grd:5433: + <message name="IDS_FLAGS_ENABLE_DOM_DISTILLER_NAME" desc="Name of the 'enable dom distiller' lab"> On 2015/10/23 20:05:37, Vitaly Buka wrote: > this is flag about print preview only, so it should be called appropriatly > IDS_FLAGS_DISABLE_DISTILLER_IN_PRINT_PREVIEW > Please note that the --enable-dom-distiller flag also activates/deactivates the Distill Page option at the main menu ("Customize and control Chromium", defaults to the top-right of the browser). Are you sure you want this branded as print preview only? https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... chrome/app/generated_resources.grd:5434: + Enable simplify page on print preview On 2015/10/23 20:05:37, Vitaly Buka wrote: > We need flag to disable feature, as it's going to be enabled by default Acknowledged. https://codereview.chromium.org/1419063002/diff/1/components/dom_distiller/co... File components/dom_distiller/core/dom_distiller_switches.h (right): https://codereview.chromium.org/1419063002/diff/1/components/dom_distiller/co... components/dom_distiller/core/dom_distiller_switches.h:17: extern const char kDisableDomDistiller[]; On 2015/10/23 20:05:38, Vitaly Buka wrote: > enable/disable distiller also all item into chrome menu and enables reader mode. > I guess goal to to change print preview and not that behavior. > > So this switch should be next to other print preview switches Currently, --enable-dom-distiller activates/deactivates both the Simplify page checkbox (print preview) and Distill Page (reader mode, chromium menu). Should we create a new flag then, just for print preview and not consider --enable-dom-distiller altogether?
https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... chrome/app/generated_resources.grd:5433: + <message name="IDS_FLAGS_ENABLE_DOM_DISTILLER_NAME" desc="Name of the 'enable dom distiller' lab"> I assume we didn't no enable distiller in main menu. So we need different flag and command line switch. Is this possible? On 2015/10/26 15:51:37, mvendramini wrote: > On 2015/10/23 20:05:37, Vitaly Buka wrote: > > this is flag about print preview only, so it should be called appropriatly > > IDS_FLAGS_DISABLE_DISTILLER_IN_PRINT_PREVIEW > > > > Please note that the --enable-dom-distiller flag also activates/deactivates the > Distill Page option at the main menu ("Customize and control Chromium", defaults > to the top-right of the browser). Are you sure you want this branded as print > preview only?
I assume we do not enable distiller in the main menu. So we need different flag and command line switch. Is this possible? On 2015/10/26 17:16:23, Vitaly Buka wrote: > https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... > File chrome/app/generated_resources.grd (right): > > https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... > chrome/app/generated_resources.grd:5433: + <message > name="IDS_FLAGS_ENABLE_DOM_DISTILLER_NAME" desc="Name of the 'enable dom > distiller' lab"> > I assume we didn't no enable distiller in main menu. > So we need different flag and command line switch. > Is this possible? > > On 2015/10/26 15:51:37, mvendramini wrote: > > On 2015/10/23 20:05:37, Vitaly Buka wrote: > > > this is flag about print preview only, so it should be called appropriatly > > > IDS_FLAGS_DISABLE_DISTILLER_IN_PRINT_PREVIEW > > > > > > > Please note that the --enable-dom-distiller flag also activates/deactivates > the > > Distill Page option at the main menu ("Customize and control Chromium", > defaults > > to the top-right of the browser). Are you sure you want this branded as print > > preview only?
Just to clarify, is case I am missing something. Is this patch for https://code.google.com/p/chromium/issues/detail?id=490809
On 2015/10/26 17:21:42, Vitaly Buka wrote: > Just to clarify, is case I am missing something. > Is this patch for https://code.google.com/p/chromium/issues/detail?id=490809 Yes it is, you filled the BUG correctly, we will read the rest of the comments and follow up soon.
On 2015/10/26 17:16:57, Vitaly Buka wrote: > I assume we do not enable distiller in the main menu. > So we need different flag and command line switch. > Is this possible? > Yes, it is possible, we will work on that now. Thanks.
So we will start working on: 1) separating the --enable-dom-distiller activation semantics from the reader mode feature and the simplify page feature on print preview 2) Refresh the UI switch accordingly 3) Set it as default Would you suggest a name for the new flag? --enable-print-preview-simplify ? https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/1/chrome/app/generated_resour... chrome/app/generated_resources.grd:5433: + <message name="IDS_FLAGS_ENABLE_DOM_DISTILLER_NAME" desc="Name of the 'enable dom distiller' lab"> On 2015/10/26 17:16:23, Vitaly Buka wrote: > I assume we didn't no enable distiller in main menu. > So we need different flag and command line switch. > Is this possible? > > On 2015/10/26 15:51:37, mvendramini wrote: > > On 2015/10/23 20:05:37, Vitaly Buka wrote: > > > this is flag about print preview only, so it should be called appropriatly > > > IDS_FLAGS_DISABLE_DISTILLER_IN_PRINT_PREVIEW > > > > > > > Please note that the --enable-dom-distiller flag also activates/deactivates > the > > Distill Page option at the main menu ("Customize and control Chromium", > defaults > > to the top-right of the browser). Are you sure you want this branded as print > > preview only? > Acknowledged.
On 2015/10/26 17:58:53, mvendramini wrote: > So we will start working on: > > 1) separating the --enable-dom-distiller activation semantics from the reader > mode feature and the simplify page feature on print preview > > 2) Refresh the UI switch accordingly > > 3) Set it as default > > Would you suggest a name for the new flag? --enable-print-preview-simplify ? It must be "disable" if default is enabled. So I am ok with, --disable-print-preview-simplify
On 2015/10/26 18:30:03, Vitaly Buka wrote: > On 2015/10/26 17:58:53, mvendramini wrote: > > So we will start working on: > > > > 1) separating the --enable-dom-distiller activation semantics from the reader > > mode feature and the simplify page feature on print preview > > > > 2) Refresh the UI switch accordingly > > > > 3) Set it as default > > > > Would you suggest a name for the new flag? --enable-print-preview-simplify ? > > It must be "disable" if default is enabled. > So I am ok with, --disable-print-preview-simplify Ok I understand it now. Acknowledged and agreed.
On 2015/10/26 18:47:06, mvendramini wrote: > On 2015/10/26 18:30:03, Vitaly Buka wrote: > > On 2015/10/26 17:58:53, mvendramini wrote: > > > So we will start working on: > > > > > > 1) separating the --enable-dom-distiller activation semantics from the > reader > > > mode feature and the simplify page feature on print preview > > > > > > 2) Refresh the UI switch accordingly > > > > > > 3) Set it as default > > > > > > Would you suggest a name for the new flag? --enable-print-preview-simplify ? > > > > It must be "disable" if default is enabled. > > So I am ok with, --disable-print-preview-simplify > > Ok I understand it now. Acknowledged and agreed. New patchset is in.
https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/about_fl... File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/about_fl... 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... File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1297: dom_distiller::url_utils::IsUrlDistillable( please run "git cl format" Unfortunatly you'll have to undo "git cl format" results on about_flags.cc https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1300: initiator, false, you need to remove dom_distiller::IsDistillablePage() call
Acknowledging the removal of the distillation detection heuristics call (IsDistillablePage). Our original plan was to make a separate CL just for that, sorry for the misunderstanding. https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/about_fl... File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/about_fl... chrome/browser/about_flags.cc:1342: #if !defined(OS_ANDROID) On 2015/10/29 00:30:19, Vitaly Buka wrote: > this should be > #if defined(ENABLE_PRINT_PREVIEW) Done. https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/ui/webui... File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1297: dom_distiller::url_utils::IsUrlDistillable( On 2015/10/29 00:30:19, Vitaly Buka wrote: > please run "git cl format" > Unfortunatly you'll have to undo "git cl format" results on about_flags.cc Done. https://codereview.chromium.org/1419063002/diff/20001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1300: initiator, false, On 2015/10/29 00:30:19, Vitaly Buka wrote: > you need to remove dom_distiller::IsDistillablePage() call Done.
lgtm https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui... File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1303: void PrintPreviewHandler::HandleIsPageDistillableResult(bool distillable) { Please remove HandleIsPageDistillableResult as unused
Patchset 3 is in: removing leftover function. https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui... File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1303: void PrintPreviewHandler::HandleIsPageDistillableResult(bool distillable) { On 2015/10/29 18:44:01, Vitaly Buka wrote: > Please remove HandleIsPageDistillableResult as unused Done.
On 2015/10/29 18:52:32, mvendramini wrote: > Patchset 4 is in: removing leftover function. > > https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui... > File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): > > https://codereview.chromium.org/1419063002/diff/40001/chrome/browser/ui/webui... > chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1303: void > PrintPreviewHandler::HandleIsPageDistillableResult(bool distillable) { > On 2015/10/29 18:44:01, Vitaly Buka wrote: > > Please remove HandleIsPageDistillableResult as unused > > Done.
lgtm
On 2015/10/29 18:59:28, Vitaly Buka wrote: > lgtm I forgot to remove a stale comment that made reference to the removed HandleIsPageDistillableResult function. Patchset 5 is in, to fix that.
https://codereview.chromium.org/1419063002/diff/80001/chrome/app/generated_re... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/80001/chrome/app/generated_re... chrome/app/generated_resources.grd:5432: + Disables simplify page on print preview grammar: Disable https://codereview.chromium.org/1419063002/diff/80001/chrome/browser/ui/webui... File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1296: !(cmdline->HasSwitch(switches::kDisablePrintPreviewSimplify)) && nit: Too many parenthesis. Just !cmdline->Foo() && You can also break this code up a bit more: if (!cmdline->HasSwitch(switches::kDisablePrintPreviewSimplify)) return; WebContents* initiator = GetInitiator(); if (initiator && dom_distiller::url_utils::IsUrlDistillable( initiator->GetLastCommittedURL())) { web_ui()->CallJavascriptFunction("allowDistillPage"); } https://codereview.chromium.org/1419063002/diff/80001/components/dom_distille... File components/dom_distiller/core/dom_distiller_switches.h (right): https://codereview.chromium.org/1419063002/diff/80001/components/dom_distille... components/dom_distiller/core/dom_distiller_switches.h:16: // Switch to disable simplify page on the print preview dialog. nit: Alphabetical order please. Ditto in the .cc file.
Obs: On the conditional refactor (the earlier return) we used git cl format to decide which formatting should be used. Is that formatting acceptable? https://codereview.chromium.org/1419063002/diff/80001/chrome/app/generated_re... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1419063002/diff/80001/chrome/app/generated_re... chrome/app/generated_resources.grd:5432: + Disables simplify page on print preview On 2015/10/29 19:14:56, Lei Zhang wrote: > grammar: Disable Done. https://codereview.chromium.org/1419063002/diff/80001/chrome/browser/ui/webui... File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/1419063002/diff/80001/chrome/browser/ui/webui... chrome/browser/ui/webui/print_preview/print_preview_handler.cc:1296: !(cmdline->HasSwitch(switches::kDisablePrintPreviewSimplify)) && On 2015/10/29 19:14:57, Lei Zhang wrote: > nit: Too many parenthesis. Just !cmdline->Foo() && > > You can also break this code up a bit more: > > if (!cmdline->HasSwitch(switches::kDisablePrintPreviewSimplify)) > return; > > WebContents* initiator = GetInitiator(); > if (initiator && > dom_distiller::url_utils::IsUrlDistillable( > initiator->GetLastCommittedURL())) { > web_ui()->CallJavascriptFunction("allowDistillPage"); > } Done. https://codereview.chromium.org/1419063002/diff/80001/components/dom_distille... File components/dom_distiller/core/dom_distiller_switches.h (right): https://codereview.chromium.org/1419063002/diff/80001/components/dom_distille... components/dom_distiller/core/dom_distiller_switches.h:16: // Switch to disable simplify page on the print preview dialog. On 2015/10/29 19:14:57, Lei Zhang wrote: > nit: Alphabetical order please. Ditto in the .cc file. Done.
On 2015/10/30 11:05:36, mvendramini wrote: > Obs: On the conditional refactor (the earlier return) we used git cl format to > decide which formatting should be used. Is that formatting acceptable? If that's what git cl format wants, then let's go with the flow. lgtm
The CQ bit was checked by vitalybuka@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from vitalybuka@chromium.org Link to the patchset: https://codereview.chromium.org/1419063002/#ps100001 (title: "Grammar corrections, alphabetical ordering of variables, small conditional refactor.")
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
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
On 2015/10/30 17:18:29, commit-bot: I haz the power wrote: > Try jobs failed on following builders: > chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) Any action required to solve those bot issues?
On 2015/10/30 18:26:02, mvendramini wrote: > On 2015/10/30 17:18:29, commit-bot: I haz the power wrote: > > Try jobs failed on following builders: > > chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, > > > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) > > Any action required to solve those bot issues? Yes, more actions are required. Did you read the error message? ** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: components/dom_distiller/core/dom_distiller_switches.cc components/dom_distiller/core/dom_distiller_switches.h
mvendramini@hp.com changed reviewers: + bengr@chromium.org, mdjones@chromium.org
On 2015/10/30 18:30:57, Lei Zhang wrote: > On 2015/10/30 18:26:02, mvendramini wrote: > > On 2015/10/30 17:18:29, commit-bot: I haz the power wrote: > > > Try jobs failed on following builders: > > > chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, > > > > > > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) > > > > Any action required to solve those bot issues? > > Yes, more actions are required. Did you read the error message? > > ** Presubmit ERRORS ** > Missing LGTM from an OWNER for these files: > components/dom_distiller/core/dom_distiller_switches.cc > components/dom_distiller/core/dom_distiller_switches.h Had a little trouble combing through the logs - adding two more reviewers.
Flags needs to be added into that xml file. Example: https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti...
On 2015/10/30 19:40:48, Vitaly Buka wrote: > Flags needs to be added into that xml file. Example: > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... BTW. Switches in dom_distiller_switches.cc are not used by distiller So they probably more related to print preview so should be move into chrome_switches.cc Lei, WDYT?
On 2015/10/30 19:44:04, Vitaly Buka wrote: > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > Flags needs to be added into that xml file. Example: > > > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... > > BTW. Switches in dom_distiller_switches.cc are not used by distiller > So they probably more related to print preview so should be move into > chrome_switches.cc > > Lei, WDYT? SGTM
On 2015/10/30 19:40:48, Vitaly Buka wrote: > Flags needs to be added into that xml file. Example: > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... Done
On 2015/10/30 19:44:04, Vitaly Buka wrote: > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > Flags needs to be added into that xml file. Example: > > > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... > > BTW. Switches in dom_distiller_switches.cc are not used by distiller > So they probably more related to print preview so should be move into > chrome_switches.cc > > Lei, WDYT? Should we create a new CL for this?
On 2015/11/03 16:35:17, mvendramini wrote: > On 2015/10/30 19:44:04, Vitaly Buka wrote: > > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > > Flags needs to be added into that xml file. Example: > > > > > > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... > > > > BTW. Switches in dom_distiller_switches.cc are not used by distiller > > So they probably more related to print preview so should be move into > > chrome_switches.cc > > > > Lei, WDYT? > > Should we create a new CL for this? Why not just do it on this CL?
On 2015/11/03 16:59:28, Lei Zhang wrote: > On 2015/11/03 16:35:17, mvendramini wrote: > > On 2015/10/30 19:44:04, Vitaly Buka wrote: > > > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > > > Flags needs to be added into that xml file. Example: > > > > > > > > > > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... > > > > > > BTW. Switches in dom_distiller_switches.cc are not used by distiller > > > So they probably more related to print preview so should be move into > > > chrome_switches.cc > > > > > > Lei, WDYT? > > > > Should we create a new CL for this? > > Why not just do it on this CL? OK, so should we move *all* switches from dom_distiller_switches into chrome_switches? Should we also delete dom_distiller_switches?
On 2015/11/03 17:03:09, mvendramini wrote: > On 2015/11/03 16:59:28, Lei Zhang wrote: > > On 2015/11/03 16:35:17, mvendramini wrote: > > > On 2015/10/30 19:44:04, Vitaly Buka wrote: > > > > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > > > > Flags needs to be added into that xml file. Example: > > > > > > > > > > > > > > > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... > > > > > > > > BTW. Switches in dom_distiller_switches.cc are not used by distiller > > > > So they probably more related to print preview so should be move into > > > > chrome_switches.cc > > > > > > > > Lei, WDYT? > > > > > > Should we create a new CL for this? > > > > Why not just do it on this CL? > > > OK, so should we move *all* switches from dom_distiller_switches into > chrome_switches? > Should we also delete dom_distiller_switches? Noooo, just kDisablePrintPreviewSimplify.
On 2015/11/03 17:18:32, Lei Zhang wrote: > On 2015/11/03 17:03:09, mvendramini wrote: > > On 2015/11/03 16:59:28, Lei Zhang wrote: > > > On 2015/11/03 16:35:17, mvendramini wrote: > > > > On 2015/10/30 19:44:04, Vitaly Buka wrote: > > > > > On 2015/10/30 19:40:48, Vitaly Buka wrote: > > > > > > Flags needs to be added into that xml file. Example: > > > > > > > > > > > > > > > > > > > > > https://code.google.com/p/chromium/codesearch#search/&q=device-discovery-noti... > > > > > > > > > > BTW. Switches in dom_distiller_switches.cc are not used by distiller > > > > > So they probably more related to print preview so should be move into > > > > > chrome_switches.cc > > > > > > > > > > Lei, WDYT? > > > > > > > > Should we create a new CL for this? > > > > > > Why not just do it on this CL? > > > > > > OK, so should we move *all* switches from dom_distiller_switches into > > chrome_switches? > > Should we also delete dom_distiller_switches? > > Noooo, just kDisablePrintPreviewSimplify. Done.
Description was changed from ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org BUG=490809 ========== to ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org, mdjones@chromium.org, bengr@chromium.org, isherman@chromium.org BUG=490809 ==========
mvendramini@hp.com changed reviewers: + isherman@chromium.org
*dom_distiller* lgtm
Thanks, I suspect this change is conflicting with current master. I can try to click CQ, but it will likely fail. Please update your Chromium checkout and rebase the CL.
We detected there's a parallel CL to show the "simplify print preview" checkbox by default: https://codereview.chromium.org/1419363004/ Please advise; should we wait, or rebase, or something else ?
The CQ bit was checked by vitalybuka@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from thestig@chromium.org, vitalybuka@chromium.org Link to the patchset: https://codereview.chromium.org/1419063002/#ps140001 (title: "Factoring out the disable-print-preview-simplify switch from dom_distiller_switches into chrome_swi…")
> Please advise; should we wait, or rebase, or something else ? Yes, you need to rebase, fix conflicts if any and upload new version.
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
The CQ bit was unchecked by vitalybuka@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
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_d...) android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile...) cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_andr...) cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
On 2015/11/03 18:17:39, Vitaly Buka wrote: > > Please advise; should we wait, or rebase, or something else ? > > Yes, you need to rebase, fix conflicts if any and upload new version. Done - rebased. There was a conflict with the aforementioned CL (https://codereview.chromium.org/1419363004/) - since that functionality was already present on this CL, we basically kept our copy.
The CQ bit was checked by mvendramini@hp.com
The patchset sent to the CQ was uploaded after l-g-t-m from thestig@chromium.org, bengr@chromium.org, vitalybuka@chromium.org Link to the patchset: https://codereview.chromium.org/1419063002/#ps160001 (title: "Latest rebase (nov 3/15)")
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
mvendramini@hp.com changed reviewers: + mpearson@chromium.org
Description was changed from ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option R=thakis@chromium.org, nyquist@chromium.org, vitalybuka@chromium.org, thestig@chromium.org, mdjones@chromium.org, bengr@chromium.org, isherman@chromium.org BUG=490809 ========== to ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option 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 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Added more reviewers; still histograms.xml needs revision.
histograms.xml lgtm
The CQ bit was checked by vitalybuka@chromium.org
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
The CQ bit was unchecked by mvendramini@hp.com
The CQ bit was checked by mvendramini@hp.com
The patchset sent to the CQ was uploaded after l-g-t-m from thestig@chromium.org, mpearson@chromium.org, bengr@chromium.org, vitalybuka@chromium.org Link to the patchset: https://codereview.chromium.org/1419063002/#ps180001 (title: "Correcting histograms.xml")
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
vitaly@ and thestig@ (Lei@): Do you think it would be a good call to edit the name of this CL at this point? The original name no longer reflects the contents. Please advise?
The CQ bit was unchecked by vitalybuka@chromium.org
> Do you think it would be a good call to edit the name of this CL at this point? > The original name no longer reflects the contents. Please advise? Sure, please update using "Edit Issue" and CQ again.
Description was changed from ========== Adding a UI switch for enable-dom-distiller On chrome://flags, this commit adds a UI selector for the --enable-dom-distiller command line option 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 ========== to ========== 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 ==========
On 2015/11/03 22:07:55, Vitaly Buka wrote: > > Do you think it would be a good call to edit the name of this CL at this > point? > > The original name no longer reflects the contents. Please advise? > > Sure, please update using "Edit Issue" and CQ again. Okay, I changed the title and description - doing CQ now.
The CQ bit was checked by mvendramini@hp.com
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
Message was sent while issue was closed.
Committed patchset #10 (id:180001)
Message was sent while issue was closed.
Patchset 10 (id:??) landed as https://crrev.com/95abe757ca491cf2521e8e30eb56104519d506c4 Cr-Commit-Position: refs/heads/master@{#357661} |