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

Unified Diff: chrome/browser/download/download_prefs.h

Issue 2369353002: Adds a pref and a policy to decide if PDFs should always be opened externally. (Closed)
Patch Set: Remove changes leaked in from the dependent branch. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_prefs.h
diff --git a/chrome/browser/download/download_prefs.h b/chrome/browser/download/download_prefs.h
index 01bd1c9d5ec2e70b849a01f937b87a6424738eef..2823f0e79161431e868cf7ce8d3e6bbfcdfc4a92 100644
--- a/chrome/browser/download/download_prefs.h
+++ b/chrome/browser/download/download_prefs.h
@@ -8,6 +8,7 @@
#include <set>
#include "base/files/file_path.h"
+#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "build/build_config.h"
#include "components/prefs/pref_member.h"
@@ -87,8 +88,12 @@ class DownloadPrefs {
// Return whether the user prefers to open PDF downloads in the platform's
// default reader.
bool ShouldOpenPdfInSystemReader() const;
+
+ // Used by tests to disable version checks for Adobe.
+ void DisableAdobeVersionCheckForTests();
#endif
+
void ResetAutoOpen();
private:
@@ -112,6 +117,7 @@ class DownloadPrefs {
#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX)
bool should_open_pdf_in_system_reader_;
+ bool disable_adobe_version_check_for_tests_;
#endif
DISALLOW_COPY_AND_ASSIGN(DownloadPrefs);
« no previous file with comments | « no previous file | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698