summaryrefslogtreecommitdiffstats
path: root/apps/launcher.cc
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-26 19:29:19 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-26 19:29:19 +0000
commit3a368a2245c082c1fca5f50f73f2139cfffd493d (patch)
treecc65814d994b363121a31c3d8f9b366b3bbc6c60 /apps/launcher.cc
parentbf398e2637fd94feceedc7216e6533721c2c82fa (diff)
downloadchromium_src-3a368a2245c082c1fca5f50f73f2139cfffd493d.zip
chromium_src-3a368a2245c082c1fca5f50f73f2139cfffd493d.tar.gz
chromium_src-3a368a2245c082c1fca5f50f73f2139cfffd493d.tar.bz2
Add extensions::EventRouter::Get(browser_context) as a shorthand for
extensions::ExtensionSystem::Get(browser_context)->event_router(). R=yoz@chromium.org Review URL: https://codereview.chromium.org/212713005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/launcher.cc')
-rw-r--r--apps/launcher.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/launcher.cc b/apps/launcher.cc
index 5842225..b19d9a2 100644
--- a/apps/launcher.cc
+++ b/apps/launcher.cc
@@ -54,6 +54,7 @@ using extensions::app_file_handler_util::FirstFileHandlerForFile;
using extensions::app_file_handler_util::CreateFileEntry;
using extensions::app_file_handler_util::GrantedFileEntry;
using extensions::app_file_handler_util::HasFileSystemWritePermission;
+using extensions::EventRouter;
using extensions::Extension;
using extensions::ExtensionHost;
using extensions::ExtensionSystem;
@@ -377,8 +378,7 @@ void RestartPlatformApp(Profile* profile, const Extension* extension) {
if (win8::IsSingleWindowMetroMode())
return;
#endif
- extensions::EventRouter* event_router =
- ExtensionSystem::Get(profile)->event_router();
+ EventRouter* event_router = EventRouter::Get(profile);
bool listening_to_restart = event_router->
ExtensionHasEventListener(extension->id(),
app_runtime::OnRestarted::kEventName);