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

Unified Diff: chrome/browser/apps/app_browsertest.cc

Issue 238633009: cleanup: Use EventRouter instead of ExtensionSystem::Get->event_router() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/apps/app_browsertest.cc
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc
index 1fd3e705d5e4f2304056fdbbac68eb3bbd10b0d8..c87b2bf6032dc50d500e66ecde0de7c1de5b6c61 100644
--- a/chrome/browser/apps/app_browsertest.cc
+++ b/chrome/browser/apps/app_browsertest.cc
@@ -1017,8 +1017,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(browser()->profile());
// Clear the registered events to ensure they are updated.
- extensions::ExtensionSystem::Get(browser()->profile())->event_router()->
- SetRegisteredEvents(extension->id(), std::set<std::string>());
+ extensions::EventRouter::Get(browser()->profile())
+ ->SetRegisteredEvents(extension->id(), std::set<std::string>());
DictionaryPrefUpdate update(extension_prefs->pref_service(),
extensions::pref_names::kExtensions);
@@ -1196,7 +1196,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppIncognitoBrowserTest, IncognitoComponentApp) {
// Wait until the file manager has had a chance to register its listener
// for the launch event.
- EventRouter* router = ExtensionSystem::Get(incognito_profile)->event_router();
+ EventRouter* router = EventRouter::Get(incognito_profile);
ASSERT_TRUE(router != NULL);
while (!router->ExtensionHasEventListener(
file_manager->id(), app_runtime::OnLaunched::kEventName)) {

Powered by Google App Engine
This is Rietveld 408576698