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

Unified Diff: chrome/browser/plugins/plugin_prefs_factory.cc

Issue 2369353002: Adds a pref and a policy to decide if PDFs should always be opened externally. (Closed)
Patch Set: Address comments. 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
Index: chrome/browser/plugins/plugin_prefs_factory.cc
diff --git a/chrome/browser/plugins/plugin_prefs_factory.cc b/chrome/browser/plugins/plugin_prefs_factory.cc
index 899a6a2869a5797508232e1635d23e248c681f78..f97c9f762c81dc5e5ce8418faf0b04b5fb2ea1bb 100644
--- a/chrome/browser/plugins/plugin_prefs_factory.cc
+++ b/chrome/browser/plugins/plugin_prefs_factory.cc
@@ -61,6 +61,7 @@ void PluginPrefsFactory::RegisterProfilePrefs(
registry->RegisterListPref(prefs::kPluginsDisabledPlugins);
registry->RegisterListPref(prefs::kPluginsDisabledPluginsExceptions);
registry->RegisterListPref(prefs::kPluginsEnabledPlugins);
+ registry->RegisterBooleanPref(prefs::kPluginsAlwaysOpenPdfExternally, false);
}
content::BrowserContext* PluginPrefsFactory::GetBrowserContextToUse(

Powered by Google App Engine
This is Rietveld 408576698