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

Unified Diff: chrome/renderer/extensions/tabs_custom_bindings.cc

Issue 1413543005: Use FrameTreeNode ID as frameId in extension APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Vend frameIds at 1 location; minimize thread hops for webRequest Created 5 years 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/renderer/extensions/tabs_custom_bindings.cc
diff --git a/chrome/renderer/extensions/tabs_custom_bindings.cc b/chrome/renderer/extensions/tabs_custom_bindings.cc
index 93576960e5049bba71a167b4fe560111fe8490a0..efc5f26efcb54ade457a327be951d7da86877fe4 100644
--- a/chrome/renderer/extensions/tabs_custom_bindings.cc
+++ b/chrome/renderer/extensions/tabs_custom_bindings.cc
@@ -47,7 +47,8 @@ void TabsCustomBindings::OpenChannelToTab(
std::string channel_name = *v8::String::Utf8Value(args[3]);
int port_id = -1;
render_frame->Send(new ExtensionHostMsg_OpenChannelToTab(
- info, extension_id, channel_name, &port_id));
+ render_frame->GetRoutingID(), info, extension_id, channel_name,
+ &port_id));
args.GetReturnValue().Set(static_cast<int32_t>(port_id));
}

Powered by Google App Engine
This is Rietveld 408576698