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

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: Rebase and move the friend decl in the ifdef. Created 4 years, 3 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') | chrome/browser/download/download_prefs.cc » ('J')
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..0a1c641e6f70e46849dca1653fa2e47e1f0631ed 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"
@@ -94,6 +95,11 @@ class DownloadPrefs {
private:
void SaveAutoOpenState();
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX)
+ // Used by tests to switch off version checks for Adobe.
Bernhard Bauer 2016/09/29 08:44:35 Rename the method so it states that the checks are
pastarmovj 2016/09/29 12:14:41 Done.
+ void OverrideAdobeVersionCheckForTests();
+#endif
+
Profile* profile_;
BooleanPrefMember prompt_for_download_;
@@ -112,6 +118,9 @@ class DownloadPrefs {
#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX)
bool should_open_pdf_in_system_reader_;
+ bool override_adobe_version_check_for_tests_;
+
+ FRIEND_TEST_ALL_PREFIXES(DownloadPrefsTest, AlwaysOpenPdfExternally);
Bernhard Bauer 2016/09/29 08:44:35 Friend declarations go first in the private sectio
pastarmovj 2016/09/29 12:14:41 Done.
#endif
DISALLOW_COPY_AND_ASSIGN(DownloadPrefs);
« no previous file with comments | « no previous file | chrome/browser/download/download_prefs.cc » ('j') | chrome/browser/download/download_prefs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698