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

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: Master merge; moved class declaration Created 8 years, 5 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 | « chrome/browser/extensions/extension_devtools_bridge.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ff7f43351658c7ceb71afd64deb56a13ea9587cd..3d7747fa487927f714bf941b7e60bd06f8e053f0 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());
@@ -474,7 +474,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(),
@@ -489,7 +489,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);
@@ -499,7 +499,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.
« no previous file with comments | « chrome/browser/extensions/extension_devtools_bridge.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698