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

Unified Diff: extensions/browser/event_router.cc

Issue 2494653005: Support API aliases (Closed)
Patch Set: . 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 e70a78c528aaf8a774142fc846997502fd294679..13b8b56ed4c2110a3cc3d284b8e466bc946f9948 100644
--- a/extensions/browser/event_router.cc
+++ b/extensions/browser/event_router.cc
@@ -588,7 +588,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.
« no previous file with comments | « chrome/test/data/extensions/extension_api_unittest/api_features.json ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698