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

Unified Diff: chrome/browser/extensions/extension_util.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_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index e02b658a9a43873a7c32468d48255716545a8388..6e33a9a9170367358d0255afddf19271d88c5eb4 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -255,10 +255,6 @@ bool ShouldSyncApp(const Extension* app, content::BrowserContext* context) {
bool IsExtensionIdle(const std::string& extension_id,
content::BrowserContext* context) {
- ProcessManager* process_manager =
- ExtensionSystem::Get(context)->process_manager();
- DCHECK(process_manager);
-
std::vector<std::string> ids_to_check;
ids_to_check.push_back(extension_id);
@@ -280,6 +276,7 @@ bool IsExtensionIdle(const std::string& extension_id,
}
}
+ ProcessManager* process_manager = ProcessManager::Get(context);
for (std::vector<std::string>::const_iterator i = ids_to_check.begin();
i != ids_to_check.end();
i++) {

Powered by Google App Engine
This is Rietveld 408576698