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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1413543005: Use FrameTreeNode ID as frameId in extension APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits in #16, s/FindByFrameTreeNodeID/FindFrameByFrameTreeNodeID/ Created 5 years, 1 month 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: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 39e9fc5c4d805792d3c1c0e2739b5b8ac5143f44..253d2a3d70552028efda0aa691f85f9626e3ad57 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -273,6 +273,10 @@ RenderFrameHost* RenderFrameHostImpl::GetParent() {
return parent_node->current_frame_host();
}
+int RenderFrameHostImpl::GetFrameTreeNodeID() {
+ return frame_tree_node_->frame_tree_node_id();
+}
+
const std::string& RenderFrameHostImpl::GetFrameName() {
return frame_tree_node_->frame_name();
}

Powered by Google App Engine
This is Rietveld 408576698