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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 11615002: Exclude PluginService for builds with enable_plugins==0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef out VersionHandler::OnGotPlugins Created 8 years 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7a2a57b93c031f9438de8e89df21b49d6b741320..f1d498472bb194b6f38f237a89126ad094689e0e 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -511,9 +511,11 @@ void ProfileImpl::DoFinalInit(bool is_new_profile) {
restore_old_session_cookies,
GetSpecialStoragePolicy());
+#if defined(ENABLE_PLUGINS)
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
PluginPrefs::GetForProfile(this),
io_data_.GetResourceContextNoInit());
+#endif
// Delay README creation to not impact startup performance.
BrowserThread::PostDelayedTask(
@@ -590,8 +592,10 @@ ProfileImpl::~ProfileImpl() {
// Remove pref observers
pref_change_registrar_.RemoveAll();
+#if defined(ENABLE_PLUGINS)
ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext(
io_data_.GetResourceContextNoInit());
+#endif
// Destroy OTR profile and its profile services first.
if (off_the_record_profile_.get()) {

Powered by Google App Engine
This is Rietveld 408576698