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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 6475011: Implemented policy to disable plugin finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged ToT and addressed comments. Created 9 years, 10 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/browser_process_impl.h ('k') | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index ae2b20915a71cfafb7e16016ab69b93703048803..f65c65bca7f1d93ba2773f52e77e664608c12c18 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -546,6 +546,10 @@ safe_browsing::ClientSideDetectionService*
return safe_browsing_detection_service_.get();
}
+bool BrowserProcessImpl::plugin_finder_disabled() const {
+ return *plugin_finder_disabled_pref_;
+}
+
void BrowserProcessImpl::CheckForInspectorFiles() {
file_thread()->message_loop()->PostTask
(FROM_HERE,
@@ -762,6 +766,13 @@ void BrowserProcessImpl::CreateLocalState() {
ShellIntegration::SetAsDefaultBrowser();
}
pref_change_registrar_.Add(prefs::kDefaultBrowserSettingEnabled, this);
+
+ // Initialize the preference for the plugin finder policy.
+ // This preference is only needed on the IO thread so make it available there.
+ local_state_->RegisterBooleanPref(prefs::kDisablePluginFinder, false);
+ plugin_finder_disabled_pref_.Init(prefs::kDisablePluginFinder,
+ local_state_.get(), NULL);
+ plugin_finder_disabled_pref_.MoveToThread(BrowserThread::IO);
}
void BrowserProcessImpl::CreateIconManager() {
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698