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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc

Issue 280853004: Use EventRouter::Get instead of ExtensionSystem::Get(browser_context)->event_router() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/api/downloads/downloads_api_browsertest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
index bf3e7e42136a28d465baab993afc682932040dec..0363bafb8ced79a81af54cdae1728b9333d8c6ce 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
@@ -297,8 +297,7 @@ class DownloadExtensionTest : public ExtensionApiTest {
current_browser(),
extension_->GetResourceURL("empty.html"),
content::PAGE_TRANSITION_LINK);
- extensions::ExtensionSystem::Get(current_browser()->profile())
- ->event_router()
+ extensions::EventRouter::Get(current_browser()->profile())
Devlin 2014/05/16 15:32:53 Since this is in the extensions namespace, can you
limasdf 2014/05/16 16:25:03 Done.
->AddEventListener(downloads::OnDeterminingFilename::kEventName,
tab->GetRenderProcessHost(),
GetExtensionId());
@@ -306,8 +305,7 @@ class DownloadExtensionTest : public ExtensionApiTest {
}
void RemoveFilenameDeterminer(content::RenderProcessHost* host) {
- extensions::ExtensionSystem::Get(current_browser()->profile())
- ->event_router()
+ extensions::EventRouter::Get(current_browser()->profile())
->RemoveEventListener(downloads::OnDeterminingFilename::kEventName,
host,
GetExtensionId());

Powered by Google App Engine
This is Rietveld 408576698