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

Issue 1368013004: Define Print Preview default printer selection policy (Closed)

Created:
5 years, 2 months ago by alekseys
Modified:
5 years, 2 months ago
CC:
chromium-reviews, arv+watch_chromium.org, asvitkine+watch_chromium.org, Lei Zhang, Wei Li
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Define Print Preview default printer selection policy. 1) Define new policy PrintPreviewDefaultPrinterSelection and corresponding command line switch default-printer-selection-rules 2) When this policy is defined, it takes precedence over default system printer 3) In case of failures, fall back to the default system printer first and only when to "Save to PDF" The policy value is a serialized JSON string, conforming to the following schema: { "type": "object", "properties": { "kind": { "type": { "enum": [ "local", "cloud" ] } }, "idPattern": { "type": "string" }, "namePattern": { "type": "string" } } } BUG=468447 Committed: https://crrev.com/4b26916d54c1068cd7e67ecdcdd03f36ebc23dcf Cr-Commit-Position: refs/heads/master@{#354604}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix policy and policy test data defintion.wq #

Patch Set 3 : Rebase #

Total comments: 22

Patch Set 4 : Policy definition updated, addressing comments. #

Patch Set 5 : Change policy caption #

Total comments: 2

Patch Set 6 : Remove command line switch, change policy name, bettter policy #

Total comments: 2

Patch Set 7 : Mention in description that regexp patterns must follow JS syntax. #

Patch Set 8 : Add tags to DefaultPrinterSelection policy. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+539 lines, -137 lines) Patch
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/app_state.js View 1 2 3 4 5 2 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 13 chunks +417 lines, -113 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 5 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 3 chunks +16 lines, -1 line 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 2 chunks +47 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 50 (20 generated)
Aleksey Shlyapnikov
5 years, 2 months ago (2015-09-24 21:19:45 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/1
5 years, 2 months ago (2015-09-28 04:10:58 UTC) #4
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/1368013004/diff/1/chrome/browser/resources/print_preview/data/destination_store.js File chrome/browser/resources/print_preview/data/destination_store.js (right): https://codereview.chromium.org/1368013004/diff/1/chrome/browser/resources/print_preview/data/destination_store.js#newcode475 chrome/browser/resources/print_preview/data/destination_store.js:475: origin, you don't have to do this one ...
5 years, 2 months ago (2015-09-28 04:12:13 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/118772)
5 years, 2 months ago (2015-09-28 05:16:26 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/1
5 years, 2 months ago (2015-09-28 17:22:06 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/108766)
5 years, 2 months ago (2015-09-28 17:56:44 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/20001
5 years, 2 months ago (2015-09-29 18:16:03 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/113796)
5 years, 2 months ago (2015-09-29 18:22:19 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/20001
5 years, 2 months ago (2015-09-29 20:59:37 UTC) #17
cawarren
On 2015/09/29 20:59:37, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 2 months ago (2015-09-29 21:22:31 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-29 22:07:44 UTC) #20
Aleksey Shlyapnikov
asvitkine: tools/metrics/histograms/histograms.xml atwilson chrome/browser/policy/configuration_policy_handler_list_factory.cc chrome/common/chrome_switches.* chrome/common/pref_names.* chrome/test/data/policy/policy_test_cases.json components/policy/resources/policy_templates.json cawarren components/policy/resources/policy_templates.json, description text and overall concept ...
5 years, 2 months ago (2015-10-05 17:23:55 UTC) #25
Alexei Svitkine (slow)
histograms lgtm
5 years, 2 months ago (2015-10-05 17:24:33 UTC) #26
Elliot Glaysher
profiles lgtm
5 years, 2 months ago (2015-10-05 17:28:29 UTC) #27
gab
chrome/browser/prefs/command_line_pref_store.cc lgtm stamp
5 years, 2 months ago (2015-10-07 20:34:31 UTC) #28
Andrew T Wilson (Slow)
I won't have time to review this - Thiemo, can you take a look at ...
5 years, 2 months ago (2015-10-09 12:49:45 UTC) #30
Thiemo Nagel
https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc#newcode319 chrome/common/chrome_switches.cc:319: "default-printer-selection-rules"; Adding command line switches is not allowed unless ...
5 years, 2 months ago (2015-10-09 16:35:48 UTC) #31
Aleksey Shlyapnikov
https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc#newcode319 chrome/common/chrome_switches.cc:319: "default-printer-selection-rules"; On 2015/10/09 16:35:47, Thiemo Nagel wrote: > Adding ...
5 years, 2 months ago (2015-10-09 21:02:51 UTC) #32
Thiemo Nagel
https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc#newcode319 chrome/common/chrome_switches.cc:319: "default-printer-selection-rules"; > My rationale was to offer non-enterprise users ...
5 years, 2 months ago (2015-10-12 19:10:09 UTC) #33
Aleksey Shlyapnikov
https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/1368013004/diff/40001/chrome/common/chrome_switches.cc#newcode319 chrome/common/chrome_switches.cc:319: "default-printer-selection-rules"; On 2015/10/12 19:10:09, Thiemo Nagel wrote: > > ...
5 years, 2 months ago (2015-10-13 18:14:57 UTC) #34
Thiemo Nagel
policy_templates.json LGTM with optional nits https://codereview.chromium.org/1368013004/diff/40001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1368013004/diff/40001/components/policy/resources/policy_templates.json#newcode4121 components/policy/resources/policy_templates.json:4121: 'example_value': '{ "kind": "cloud", ...
5 years, 2 months ago (2015-10-15 15:31:52 UTC) #35
Aleksey Shlyapnikov
https://codereview.chromium.org/1368013004/diff/40001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1368013004/diff/40001/components/policy/resources/policy_templates.json#newcode4121 components/policy/resources/policy_templates.json:4121: 'example_value': '{ "kind": "cloud", "namePattern": ".*Color" }', On 2015/10/15 ...
5 years, 2 months ago (2015-10-15 22:12:40 UTC) #36
Andrew T Wilson (Slow)
owner LGTM
5 years, 2 months ago (2015-10-16 10:40:24 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/120001
5 years, 2 months ago (2015-10-16 18:37:17 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/82441) ios_rel_device_ninja on ...
5 years, 2 months ago (2015-10-16 18:43:55 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/140001
5 years, 2 months ago (2015-10-16 20:01:11 UTC) #43
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-16 21:08:38 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368013004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368013004/140001
5 years, 2 months ago (2015-10-16 21:22:50 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 2 months ago (2015-10-16 21:28:55 UTC) #49
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 21:29:49 UTC) #50
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4b26916d54c1068cd7e67ecdcdd03f36ebc23dcf
Cr-Commit-Position: refs/heads/master@{#354604}

Powered by Google App Engine
This is Rietveld 408576698