diff options
author | palmer <palmer@chromium.org> | 2014-11-07 13:38:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-07 21:38:26 +0000 |
commit | bfe0fce99e0da81fd9f07bd4cc4e6587cc342046 (patch) | |
tree | fc8c411375e9de6d366c76d3c8532d452bbf6fed /chrome/common/pref_names.cc | |
parent | e37f822491958dc21dc4dbaf94432d28f759b51d (diff) | |
download | chromium_src-bfe0fce99e0da81fd9f07bd4cc4e6587cc342046.zip chromium_src-bfe0fce99e0da81fd9f07bd4cc4e6587cc342046.tar.gz chromium_src-bfe0fce99e0da81fd9f07bd4cc4e6587cc342046.tar.bz2 |
Add option to open PDFs in system viewer to OS X and Linux.
Not just Windows.
BUG=370746
TEST=With a fresh profile, download a PDF. In the Download Shelf, select
Always Open With System Viewer. Check that subsequent downloads of PDFs
launch the system PDF viewer. (On Corp Macs, that is defined to be
Chrome; change it to Preview.app.)
Review URL: https://codereview.chromium.org/665163005
Cr-Commit-Position: refs/heads/master@{#303298}
Diffstat (limited to 'chrome/common/pref_names.cc')
-rw-r--r-- | chrome/common/pref_names.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index bb05c0e..2c2d7d4 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -1425,10 +1425,10 @@ const char kDownloadDefaultDirectory[] = "download.default_directory"; // upgrade a unsafe location to a safe location. const char kDownloadDirUpgraded[] = "download.directory_upgrade"; -#if defined(OS_WIN) -// Whether downloaded PDFs should be opened in Adobe Acrobat Reader. -const char kOpenPdfDownloadInAdobeReader[] = - "download.open_pdf_in_adobe_reader"; +#if defined(OS_WIN) || defined(OS_LINUX) || \ + (defined(OS_MACOSX) && !defined(OS_IOS)) +const char kOpenPdfDownloadInSystemReader[] = + "download.open_pdf_in_system_reader"; #endif // String which specifies where to save html files to by default. |