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

Unified Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 671763002: Extract ProcessManager from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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/extensions/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index 6e08e4b046465bc5f9c23cfa4b2a4ce11fe70763..11d69fec600d79b4828b8c8341892c3fffed1698 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -52,7 +52,6 @@
#include "extensions/browser/info_map.h"
#include "extensions/browser/lazy_background_task_queue.h"
#include "extensions/browser/management_policy.h"
-#include "extensions/browser/process_manager.h"
#include "extensions/browser/quota_service.h"
#include "extensions/browser/runtime_data.h"
#include "extensions/browser/state_store.h"
@@ -515,9 +514,7 @@ ExtensionSystemImpl::ExtensionSystemImpl(Profile* profile)
: profile_(profile) {
shared_ = ExtensionSystemSharedFactory::GetForBrowserContext(profile);
- if (profile->IsOffTheRecord()) {
- process_manager_.reset(ProcessManager::Create(profile));
- } else {
+ if (!profile->IsOffTheRecord()) {
shared_->InitPrefs();
}
}
@@ -526,7 +523,6 @@ ExtensionSystemImpl::~ExtensionSystemImpl() {
}
void ExtensionSystemImpl::Shutdown() {
- process_manager_.reset();
}
void ExtensionSystemImpl::InitForRegularProfile(bool extensions_enabled) {
@@ -536,9 +532,6 @@ void ExtensionSystemImpl::InitForRegularProfile(bool extensions_enabled) {
// The InfoMap needs to be created before the ProcessManager.
shared_->info_map();
-
- process_manager_.reset(ProcessManager::Create(profile_));
-
shared_->Init(extensions_enabled);
}
@@ -558,10 +551,6 @@ SharedUserScriptMaster* ExtensionSystemImpl::shared_user_script_master() {
return shared_->shared_user_script_master();
}
-ProcessManager* ExtensionSystemImpl::process_manager() {
- return process_manager_.get();
-}
-
StateStore* ExtensionSystemImpl::state_store() {
return shared_->state_store();
}
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.h ('k') | chrome/browser/extensions/extension_test_notification_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698