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

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: 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 | « chrome/browser/plugins/plugin_prefs.cc ('k') | chrome/browser/plugins/plugin_prefs_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/plugins/plugin_prefs.cc ('k') | chrome/browser/plugins/plugin_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698