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

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

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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_event_router.cc
diff --git a/chrome/browser/extensions/extension_event_router.cc b/chrome/browser/extensions/extension_event_router.cc
index ae763ec9011fa7cff6d80c14574f0af73b8ecb6d..861295ebaca23b2f01fb1a4343f09949859bab21 100644
--- a/chrome/browser/extensions/extension_event_router.cc
+++ b/chrome/browser/extensions/extension_event_router.cc
@@ -103,7 +103,7 @@ void ExtensionEventRouter::DispatchEvent(
ExtensionEventRouter::ExtensionEventRouter(Profile* profile)
: profile_(profile),
extension_devtools_manager_(
- ExtensionSystem::Get(profile)->devtools_manager()),
+ extensions::ExtensionSystem::Get(profile)->devtools_manager()),
listeners_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
content::NotificationService::AllSources());
@@ -472,7 +472,7 @@ void ExtensionEventRouter::MaybeLoadLazyBackgroundPageToDispatchEvent(
return;
extensions::LazyBackgroundTaskQueue* queue =
- ExtensionSystem::Get(profile)->lazy_background_task_queue();
+ extensions::ExtensionSystem::Get(profile)->lazy_background_task_queue();
if (queue->ShouldEnqueueTask(profile, extension)) {
queue->AddPendingTask(
profile, extension->id(),
@@ -487,7 +487,7 @@ void ExtensionEventRouter::IncrementInFlightEvents(
// because that's the only time we'll get an ACK.
if (extension->has_lazy_background_page()) {
ExtensionProcessManager* pm =
- ExtensionSystem::Get(profile)->process_manager();
+ extensions::ExtensionSystem::Get(profile)->process_manager();
ExtensionHost* host = pm->GetBackgroundHostForExtension(extension->id());
if (host)
pm->IncrementLazyKeepaliveCount(extension);
@@ -497,7 +497,7 @@ void ExtensionEventRouter::IncrementInFlightEvents(
void ExtensionEventRouter::OnEventAck(
Profile* profile, const std::string& extension_id) {
ExtensionProcessManager* pm =
- ExtensionSystem::Get(profile)->process_manager();
+ extensions::ExtensionSystem::Get(profile)->process_manager();
ExtensionHost* host = pm->GetBackgroundHostForExtension(extension_id);
// The event ACK is routed to the background host, so this should never be
// NULL.

Powered by Google App Engine
This is Rietveld 408576698