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

Issue 2576233003: Print Preview: Simplify other_options_settings javascript code. (Closed)

Created:
4 years ago by rbpotter
Modified:
4 years ago
Reviewers:
dpapad
CC:
arv+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Print Preview: Simplify other_options_settings javascript code. There is a lot of repeated code in other_options_settings.js. Simplify the code and make it easier to add additional options if needed in future. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e9f7fec4471f09e10f3934e1531a35bad0fecdf0 Cr-Commit-Position: refs/heads/master@{#439149}

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 20

Patch Set 3 : Small fixes #

Total comments: 6

Patch Set 4 : More fixes #

Total comments: 2

Patch Set 5 : fix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -323 lines) Patch
M chrome/browser/resources/print_preview/settings/other_options_settings.html View 1 2 1 chunk +16 lines, -16 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/other_options_settings.js View 1 2 3 4 2 chunks +142 lines, -287 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 13 chunks +25 lines, -20 lines 0 comments Download

Messages

Total messages: 36 (26 generated)
rbpotter
Other options settings changes in separate CL
4 years ago (2016-12-15 02:30:35 UTC) #6
dpapad
https://codereview.chromium.org/2576233003/diff/20001/chrome/browser/resources/print_preview/settings/other_options_settings.js File chrome/browser/resources/print_preview/settings/other_options_settings.js (right): https://codereview.chromium.org/2576233003/diff/20001/chrome/browser/resources/print_preview/settings/other_options_settings.js#newcode8 chrome/browser/resources/print_preview/settings/other_options_settings.js:8: function CheckboxTicketItemElement(ticketItem, collapsible, className) { @constructor https://codereview.chromium.org/2576233003/diff/20001/chrome/browser/resources/print_preview/settings/other_options_settings.js#newcode11 chrome/browser/resources/print_preview/settings/other_options_settings.js:11: * ...
4 years ago (2016-12-15 18:40:40 UTC) #9
rbpotter
https://codereview.chromium.org/2576233003/diff/20001/chrome/browser/resources/print_preview/settings/other_options_settings.js File chrome/browser/resources/print_preview/settings/other_options_settings.js (right): https://codereview.chromium.org/2576233003/diff/20001/chrome/browser/resources/print_preview/settings/other_options_settings.js#newcode8 chrome/browser/resources/print_preview/settings/other_options_settings.js:8: function CheckboxTicketItemElement(ticketItem, collapsible, className) { On 2016/12/15 18:40:40, dpapad ...
4 years ago (2016-12-15 20:12:38 UTC) #14
dpapad
Mostly nits. Reading the CL description, is not obvious that it refers to Print preview. ...
4 years ago (2016-12-15 20:32:59 UTC) #16
rbpotter
https://codereview.chromium.org/2576233003/diff/60001/chrome/browser/resources/print_preview/settings/other_options_settings.js File chrome/browser/resources/print_preview/settings/other_options_settings.js (right): https://codereview.chromium.org/2576233003/diff/60001/chrome/browser/resources/print_preview/settings/other_options_settings.js#newcode13 chrome/browser/resources/print_preview/settings/other_options_settings.js:13: * @param {string} The CSS id selector string for ...
4 years ago (2016-12-15 23:28:17 UTC) #20
dpapad
lgtm https://codereview.chromium.org/2576233003/diff/80001/chrome/browser/resources/print_preview/settings/other_options_settings.js File chrome/browser/resources/print_preview/settings/other_options_settings.js (right): https://codereview.chromium.org/2576233003/diff/80001/chrome/browser/resources/print_preview/settings/other_options_settings.js#newcode72 chrome/browser/resources/print_preview/settings/other_options_settings.js:72: this.container_ = document.getElementById(this.cssId_); -2 indent
4 years ago (2016-12-16 00:53:48 UTC) #23
rbpotter
https://codereview.chromium.org/2576233003/diff/80001/chrome/browser/resources/print_preview/settings/other_options_settings.js File chrome/browser/resources/print_preview/settings/other_options_settings.js (right): https://codereview.chromium.org/2576233003/diff/80001/chrome/browser/resources/print_preview/settings/other_options_settings.js#newcode72 chrome/browser/resources/print_preview/settings/other_options_settings.js:72: this.container_ = document.getElementById(this.cssId_); On 2016/12/16 00:53:48, dpapad wrote: > ...
4 years ago (2016-12-16 01:19:49 UTC) #25
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/2576233003/100001
4 years ago (2016-12-16 18:06:29 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-12-16 18:17:59 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-16 18:22:39 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e9f7fec4471f09e10f3934e1531a35bad0fecdf0
Cr-Commit-Position: refs/heads/master@{#439149}

Powered by Google App Engine
This is Rietveld 408576698