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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 172063002: Unify frame IDs with RenderFrameHost routing IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix type Created 6 years, 10 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 | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 63aebf9cd1c2cf8540e9b5d6db3bc8fc4ec3b972..04a81856687aabb40215ded514acf700f7b126a6 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3079,7 +3079,8 @@ void WebContentsImpl::RequestTransferURL(
int64 frame_tree_node_id = -1;
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSitePerProcess) &&
source_frame_id != -1) {
- FrameTreeNode* source_node = frame_tree_.FindByFrameID(source_frame_id);
+ FrameTreeNode* source_node = frame_tree_.FindByRoutingID(
+ source_frame_id, old_request_id.child_id);
if (source_node)
frame_tree_node_id = source_node->frame_tree_node_id();
}
@@ -3637,9 +3638,9 @@ gfx::Size WebContentsImpl::GetSizeForNewRenderView() const {
void WebContentsImpl::OnFrameRemoved(
RenderViewHostImpl* render_view_host,
- int64 frame_id) {
+ int frame_routing_id) {
FOR_EACH_OBSERVER(WebContentsObserver, observers_,
- FrameDetached(render_view_host, frame_id));
+ FrameDetached(render_view_host, frame_routing_id));
}
void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698