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

Issue 2369353002: Adds a pref and a policy to decide if PDFs should always be opened externally. (Closed)

Created:
4 years, 2 months ago by pastarmovj
Modified:
4 years, 2 months ago
CC:
asanka, asvitkine+watch_chromium.org, chromium-reviews, jam, tnagel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds a pref and a policy to decide if PDFs should always be opened externally. If set this pref disables the PDF viewer and instead download the file and automatically opens the external PDF viewer. UI for controlling the pref will be added in subsequent CL. BUG=628014 TEST=unit_tests CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/d5e6f66e96a2a91700a169cc1afa66c0da46185d Cr-Commit-Position: refs/heads/master@{#423189}

Patch Set 1 #

Patch Set 2 : Fixed constructor order. #

Patch Set 3 : Disable the test on platforms that do not support the check. #

Patch Set 4 : Log adobe state. #

Patch Set 5 : Allow for overriding adobe version check. #

Patch Set 6 : Rebase and move the friend decl in the ifdef. #

Total comments: 14

Patch Set 7 : Address comments. #

Total comments: 6

Patch Set 8 : Remove changes leaked in from the dependent branch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -16 lines) Patch
M chrome/browser/download/download_prefs.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 4 5 6 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/download/download_prefs_unittest.cc View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs.h View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/plugins/plugin_prefs.cc View 1 2 3 4 5 6 8 chunks +39 lines, -8 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs_factory.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs_unittest.cc View 1 2 3 4 5 6 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 chunk +8 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 2 chunks +18 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

Dependent Patchsets:

Messages

Total messages: 52 (32 generated)
pastarmovj
asanka@chromium.org: Please review changes in downloads bauerb@chromium.org: Please review changes in plugins Thanks! Julian
4 years, 2 months ago (2016-09-28 13:20:13 UTC) #24
pastarmovj
mkwst@chromium.org: Please review changes in histograms.xml
4 years, 2 months ago (2016-09-28 13:21:21 UTC) #26
Mike West
Hi! Sorry, I'm only in the metrics OWNERS file for Blink-side UseCounter changes to histograms. ...
4 years, 2 months ago (2016-09-28 13:24:01 UTC) #27
pastarmovj
Hi isherman, can you please review the change to histograms.xml. Thanks, Julian
4 years, 2 months ago (2016-09-28 13:29:51 UTC) #29
asanka
https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.cc File chrome/browser/download/download_prefs.cc (right): https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.cc#newcode353 chrome/browser/download/download_prefs.cc:353: if (!override_adobe_version_check_for_tests_ && What should be the non-test behavior ...
4 years, 2 months ago (2016-09-28 17:27:54 UTC) #30
Ilya Sherman
histograms.xml lgtm
4 years, 2 months ago (2016-09-28 20:21:30 UTC) #31
pastarmovj
https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.cc File chrome/browser/download/download_prefs.cc (right): https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.cc#newcode353 chrome/browser/download/download_prefs.cc:353: if (!override_adobe_version_check_for_tests_ && On 2016/09/28 17:27:53, asanka wrote: > ...
4 years, 2 months ago (2016-09-29 08:40:44 UTC) #32
Bernhard Bauer
https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.h File chrome/browser/download/download_prefs.h (right): https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.h#newcode99 chrome/browser/download/download_prefs.h:99: // Used by tests to switch off version checks ...
4 years, 2 months ago (2016-09-29 08:44:35 UTC) #33
pastarmovj
https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.h File chrome/browser/download/download_prefs.h (right): https://codereview.chromium.org/2369353002/diff/130001/chrome/browser/download/download_prefs.h#newcode99 chrome/browser/download/download_prefs.h:99: // Used by tests to switch off version checks ...
4 years, 2 months ago (2016-09-29 12:14:41 UTC) #35
Bernhard Bauer
lgtm
4 years, 2 months ago (2016-09-30 09:03:28 UTC) #36
asanka
Disregard the comment about download_prefs if download changes are deemed unnecessary. https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/download/download_prefs.h File chrome/browser/download/download_prefs.h (right): ...
4 years, 2 months ago (2016-09-30 14:34:53 UTC) #37
pastarmovj
https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/download/download_prefs.h File chrome/browser/download/download_prefs.h (right): https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/download/download_prefs.h#newcode120 chrome/browser/download/download_prefs.h:120: bool disable_adobe_version_check_for_tests_; On 2016/09/30 14:34:53, asanka wrote: > Rather ...
4 years, 2 months ago (2016-10-04 10:06:34 UTC) #38
pastarmovj
Asanka, gentle ping?
4 years, 2 months ago (2016-10-05 11:01:20 UTC) #39
asanka
lgtm https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/plugins/plugin_prefs.cc File chrome/browser/plugins/plugin_prefs.cc (right): https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/plugins/plugin_prefs.cc#newcode236 chrome/browser/plugins/plugin_prefs.cc:236: return POLICY_DISABLED; On 2016/10/04 at 10:06:34, pastarmovj wrote: ...
4 years, 2 months ago (2016-10-05 15:18:27 UTC) #40
pastarmovj
https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/plugins/plugin_prefs.cc File chrome/browser/plugins/plugin_prefs.cc (right): https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/plugins/plugin_prefs.cc#newcode236 chrome/browser/plugins/plugin_prefs.cc:236: return POLICY_DISABLED; On 2016/10/05 15:18:27, asanka wrote: > On ...
4 years, 2 months ago (2016-10-05 15:32:25 UTC) #41
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/2369353002/150001
4 years, 2 months ago (2016-10-05 15:32:53 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/274228)
4 years, 2 months ago (2016-10-05 15:44:33 UTC) #46
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/2369353002/170001
4 years, 2 months ago (2016-10-05 15:46:57 UTC) #49
commit-bot: I haz the power
Committed patchset #8 (id:170001)
4 years, 2 months ago (2016-10-05 16:52:37 UTC) #50
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 16:56:58 UTC) #52
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d5e6f66e96a2a91700a169cc1afa66c0da46185d
Cr-Commit-Position: refs/heads/master@{#423189}

Powered by Google App Engine
This is Rietveld 408576698