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

Unified Diff: extensions/browser/extension_host.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
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_host.cc
diff --git a/extensions/browser/extension_host.cc b/extensions/browser/extension_host.cc
index cd5970b3e323bd59ce83bb26138026888589a3e0..e19d14665c3edee43807ec653d212b040f6f6227 100644
--- a/extensions/browser/extension_host.cc
+++ b/extensions/browser/extension_host.cc
@@ -349,17 +349,13 @@ void ExtensionHost::OnEventAck() {
}
void ExtensionHost::OnIncrementLazyKeepaliveCount() {
- ProcessManager* pm = ExtensionSystem::Get(
- browser_context_)->process_manager();
- if (pm)
- pm->IncrementLazyKeepaliveCount(extension());
+ ProcessManager::Get(browser_context_)
+ ->IncrementLazyKeepaliveCount(extension());
}
void ExtensionHost::OnDecrementLazyKeepaliveCount() {
- ProcessManager* pm = ExtensionSystem::Get(
- browser_context_)->process_manager();
- if (pm)
- pm->DecrementLazyKeepaliveCount(extension());
+ ProcessManager::Get(browser_context_)
+ ->DecrementLazyKeepaliveCount(extension());
}
// content::WebContentsObserver
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698