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

Unified Diff: chrome/common/extensions/api/mdns.idl

Issue 1005903005: Cap chrome.mdns.onServiceList listeners per extension at 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto HEAD and consolidate changes into one commit Created 5 years, 9 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/common/extensions/api/mdns.idl
diff --git a/chrome/common/extensions/api/mdns.idl b/chrome/common/extensions/api/mdns.idl
index 434d4b8187ff8912241fdae3b3d81a152dfbb31a..f199d2fb90d60fe2572504b7088734386cb37fdc 100644
--- a/chrome/common/extensions/api/mdns.idl
+++ b/chrome/common/extensions/api/mdns.idl
@@ -30,6 +30,6 @@ namespace mdns {
// discovering should be specified as the event filter with the
// 'serviceType' key. Not specifying an event filter will not start any
// discovery listeners.
- [supportsFilters=true] static void onServiceList(MDnsService[] services);
+ [supportsFilters=true, maxListeners=10] static void onServiceList(MDnsService[] services);
};
};

Powered by Google App Engine
This is Rietveld 408576698