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

Unified Diff: extensions/browser/event_router.cc

Issue 2494653005: Support API aliases (Closed)
Patch Set: update docs Created 4 years, 1 month 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: extensions/browser/event_router.cc
diff --git a/extensions/browser/event_router.cc b/extensions/browser/event_router.cc
index 24b6224fae1a032132060e18cc51ba6e54b8f427..8c0b79131291f83cc6a6a79189a61cdd1492bb85 100644
--- a/extensions/browser/event_router.cc
+++ b/extensions/browser/event_router.cc
@@ -600,7 +600,8 @@ void EventRouter::DispatchEventToProcess(
Feature::Availability availability =
ExtensionAPI::GetSharedInstance()->IsAvailable(
- event->event_name, extension, target_context, listener_url);
+ event->event_name, extension, target_context, listener_url,
+ CheckAliasStatus::ALLOWED);
if (!availability.is_available()) {
// It shouldn't be possible to reach here, because access is checked on
// registration. However, for paranoia, check on dispatch as well.

Powered by Google App Engine
This is Rietveld 408576698