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

Unified Diff: extensions/renderer/event_bindings.cc

Issue 411733002: WIP: diff which plumbs through the event URL. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « extensions/common/features/simple_feature.cc ('k') | extensions/renderer/resources/binding.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/event_bindings.cc
diff --git a/extensions/renderer/event_bindings.cc b/extensions/renderer/event_bindings.cc
index 331e6512d7df2aaa371cd1c8dc5850988aea9405..948d3dedd98b305b62474127d4bd8df86d0767cd 100644
--- a/extensions/renderer/event_bindings.cc
+++ b/extensions/renderer/event_bindings.cc
@@ -150,8 +150,8 @@ void EventBindings::AttachEvent(
std::string extension_id = context()->GetExtensionID();
EventListenerCounts& listener_counts = g_listener_counts.Get()[extension_id];
if (++listener_counts[event_name] == 1) {
- content::RenderThread::Get()->Send(
- new ExtensionHostMsg_AddListener(extension_id, event_name));
+ content::RenderThread::Get()->Send(new ExtensionHostMsg_AddListener(
+ extension_id, context()->GetURL(), event_name));
}
// This is called the first time the page has added a listener. Since
@@ -177,8 +177,8 @@ void EventBindings::DetachEvent(
EventListenerCounts& listener_counts = g_listener_counts.Get()[extension_id];
if (--listener_counts[event_name] == 0) {
- content::RenderThread::Get()->Send(
- new ExtensionHostMsg_RemoveListener(extension_id, event_name));
+ content::RenderThread::Get()->Send(new ExtensionHostMsg_RemoveListener(
+ extension_id, context()->GetURL(), event_name));
}
// DetachEvent is called when the last listener for the context is
« no previous file with comments | « extensions/common/features/simple_feature.cc ('k') | extensions/renderer/resources/binding.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698