Index: chrome/renderer/extensions/extension_process_bindings.cc |
diff --git a/chrome/renderer/extensions/extension_process_bindings.cc b/chrome/renderer/extensions/extension_process_bindings.cc |
index 1a3614fd1c0ddc3bbf057f9295219cb04e5ceb8d..032d4570b4b2a3d2ead7a9480c798a85ef687206 100644 |
--- a/chrome/renderer/extensions/extension_process_bindings.cc |
+++ b/chrome/renderer/extensions/extension_process_bindings.cc |
@@ -69,8 +69,10 @@ class ExtensionImpl : public v8::Extension { |
} |
static v8::Handle<v8::Value> StartRequest(const v8::Arguments& args) { |
- WebFrame* webframe = WebFrame::RetrieveActiveFrame(); |
- RenderView* renderview = GetActiveRenderView(); |
+ // Get the current RenderView so that we can send a routed IPC message from |
+ // the correct source. |
+ WebFrame* webframe = WebFrame::RetrieveFrameForCurrentContext(); |
+ RenderView* renderview = GetRenderViewForCurrentContext(); |
if (!webframe || !renderview) |
return v8::Undefined(); |