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

Unified Diff: chrome/browser/profiles/off_the_record_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: Rebase 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
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index ca266022efe76d617b25e276d49ca510bae455e0..0d8faa8e5b03b380bff4f7994732700403f0ff03 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -116,8 +116,10 @@ void OffTheRecordProfileImpl::Init() {
ExtensionIconSource* icon_source = new ExtensionIconSource(profile_);
ChromeURLDataManager::AddDataSource(this, icon_source);
+#if defined(ENABLE_PLUGINS)
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
PluginPrefs::GetForProfile(this), io_data_.GetResourceContextNoInit());
+#endif
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -127,8 +129,10 @@ void OffTheRecordProfileImpl::Init() {
OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
MaybeSendDestroyedNotification();
+#if defined(ENABLE_PLUGINS)
ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext(
io_data_.GetResourceContextNoInit());
+#endif
ExtensionService* extension_service =
extensions::ExtensionSystem::Get(this)->extension_service();
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698