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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1521913002: PDF: Delete non-material viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « chrome/common/chrome_switches.h ('k') | chrome/test/data/pdf/basic_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 6907863d7318a5d93d6cfd5d8d1f456296e26441..c9c9249829c2994a148f1d40f294bcaf7cc9cf2f 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -302,9 +302,6 @@ const char kDisableOutOfProcessPac[] = "disable-out-of-process-pac";
const char kDisablePasswordManagerReauthentication[] =
"disable-password-manager-reauthentication";
-// Disable the new material UI - requires out of process PDF plugin.
-const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui";
-
// Disables the Permissions Blacklist, which blocks access to permissions
// for blacklisted sites.
const char kDisablePermissionsBlacklist[] = "disable-permissions-blacklist";
@@ -466,9 +463,6 @@ const char kEnableOfflineAutoReloadVisibleOnly[] =
// Enables panels (always on-top docked pop-up windows).
const char kEnablePanels[] = "enable-panels";
-// Enable the new material UI - requires out of process PDF plugin.
-const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui";
-
// Enables the Permissions Blacklist, which blocks access to permissions
// for blacklisted sites.
const char kEnablePermissionsBlacklist[] = "enable-permissions-blacklist";
@@ -1356,17 +1350,6 @@ bool MdPolicyPageEnabled() {
::switches::kEnableMaterialDesignPolicyPage);
}
-bool PdfMaterialUIEnabled() {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
- return true;
-
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
- return false;
-
- // Default.
- return true;
-}
-
bool SettingsWindowEnabled() {
#if defined(OS_CHROMEOS)
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/test/data/pdf/basic_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698