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

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: s/:/ / Created 4 years, 11 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/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 b9d5d24aa3df50f5639a776c16a5e7bb20b5a919..2459f96d068d7faddd84665944a78fe1eac0f7a5 100644
--- a/chrome/renderer/extensions/tabs_custom_bindings.cc
+++ b/chrome/renderer/extensions/tabs_custom_bindings.cc
@@ -49,7 +49,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