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

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: 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
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..d345a52c8e779e4a3f5a1cd8c482f2917acfaba2 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::kAlwaysOpenPdfExternally, false);
}
content::BrowserContext* PluginPrefsFactory::GetBrowserContextToUse(

Powered by Google App Engine
This is Rietveld 408576698