| Index: extensions/browser/event_router.cc
|
| diff --git a/extensions/browser/event_router.cc b/extensions/browser/event_router.cc
|
| index d006d1e9a7588f049faf243e26c7097c71f47b25..3941674177115482d9cc8a2403d7a4a6c701888d 100644
|
| --- a/extensions/browser/event_router.cc
|
| +++ b/extensions/browser/event_router.cc
|
| @@ -680,7 +680,7 @@ void EventRouter::IncrementInFlightEvents(BrowserContext* context,
|
| // Only increment in-flight events if the lazy background page is active,
|
| // because that's the only time we'll get an ACK.
|
| if (BackgroundInfo::HasLazyBackgroundPage(extension)) {
|
| - ProcessManager* pm = ExtensionSystem::Get(context)->process_manager();
|
| + ProcessManager* pm = ProcessManager::Get(context);
|
| ExtensionHost* host = pm->GetBackgroundHostForExtension(extension->id());
|
| if (host)
|
| pm->IncrementLazyKeepaliveCount(extension);
|
| @@ -689,7 +689,7 @@ void EventRouter::IncrementInFlightEvents(BrowserContext* context,
|
|
|
| void EventRouter::OnEventAck(BrowserContext* context,
|
| const std::string& extension_id) {
|
| - ProcessManager* pm = ExtensionSystem::Get(context)->process_manager();
|
| + ProcessManager* pm = ProcessManager::Get(context);
|
| ExtensionHost* host = pm->GetBackgroundHostForExtension(extension_id);
|
| // The event ACK is routed to the background host, so this should never be
|
| // NULL.
|
|
|