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

Unified Diff: content/browser/security_exploit_browsertest.cc

Issue 2527133002: Remove some WebContents::GetRenderViewHost() calls. (Closed)
Patch Set: More reverts for the same reason as patch set 3, fixes merge conflict Created 4 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: content/browser/security_exploit_browsertest.cc
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc
index 53622ac0df42fa408ffd7f86247874455f5a93ce..69e69444f3f905ffb74c3b47841311c70cceb47e 100644
--- a/content/browser/security_exploit_browsertest.cc
+++ b/content/browser/security_exploit_browsertest.cc
@@ -79,8 +79,8 @@ RenderViewHostImpl* PrepareToDuplicateHosts(Shell* shell,
Shell* shell2 = shell2_observer.GetShell();
// The new window must be in the same process, but have a new routing id.
- EXPECT_EQ(shell->web_contents()->GetRenderViewHost()->GetProcess()->GetID(),
- shell2->web_contents()->GetRenderViewHost()->GetProcess()->GetID());
+ EXPECT_EQ(shell->web_contents()->GetMainFrame()->GetProcess()->GetID(),
+ shell2->web_contents()->GetMainFrame()->GetProcess()->GetID());
*target_routing_id =
shell2->web_contents()->GetRenderViewHost()->GetRoutingID();
EXPECT_NE(*target_routing_id,

Powered by Google App Engine
This is Rietveld 408576698