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

Unified Diff: chrome/browser/extensions/event_listener_map.h

Issue 10829186: Tabs API is usable without tabs permission. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed sample extensions Created 8 years, 4 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/event_listener_map.h
diff --git a/chrome/browser/extensions/event_listener_map.h b/chrome/browser/extensions/event_listener_map.h
index 6c5c304f6826cbd48a443e57ddcd505c41754056..f935fe1a65db0e462cdb1fbb23e1488652d2b5f3 100644
--- a/chrome/browser/extensions/event_listener_map.h
+++ b/chrome/browser/extensions/event_listener_map.h
@@ -93,8 +93,11 @@ class EventListenerMap {
bool RemoveListener(const EventListener* listener);
// Returns the set of listeners that want to be notified of |event|.
- std::set<const EventListener*> GetEventListeners(
- const Event& event);
+ std::set<const EventListener*> GetEventListeners(const Event& event);
+
+ ListenerList& listeners(const std::string& event_name) {
Aaron Boodman 2012/08/30 05:45:48 Can you return const&? Also I noticed the call si
chebert 2012/08/30 23:17:20 Done.
+ return listeners_[event_name];
+ }
// Removes all listeners with process equal to |process|.
void RemoveListenersForProcess(const content::RenderProcessHost* process);

Powered by Google App Engine
This is Rietveld 408576698