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

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: Finished the policy implementation. 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
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index b7d11153c96e25d69122fe0994347bb4ffdfdf4f..67a0475e71aafd86758323deb08085b5533aa93b 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -548,6 +548,10 @@ safe_browsing::ClientSideDetectionService*
return safe_browsing_detection_service_.get();
}
+bool BrowserProcessImpl::disable_plugin_finder_pref() const {
+ return *disable_plugin_finder_pref_;
+}
+
void BrowserProcessImpl::CheckForInspectorFiles() {
file_thread()->message_loop()->PostTask
(FROM_HERE,
@@ -764,6 +768,13 @@ void BrowserProcessImpl::CreateLocalState() {
ShellIntegration::SetAsDefaultBrowser();
}
pref_change_registrar_.Add(prefs::kDefaultBrowserSettingEnabled, this);
+
+ // Initilialize 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);
+ disable_plugin_finder_pref_.Init(prefs::kDisablePluginFinder,
+ local_state_.get(), NULL);
+ disable_plugin_finder_pref_.MoveToThread(BrowserThread::IO);
}
void BrowserProcessImpl::CreateIconManager() {

Powered by Google App Engine
This is Rietveld 408576698