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

Unified Diff: content/test/test_web_contents.cc

Issue 2527133002: Remove some WebContents::GetRenderViewHost() calls. (Closed)
Patch Set: Created 4 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/test/test_web_contents.cc
diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
index 2fc99008b35edb35733e07c0c0b8bfd41f91190f..c0546a56c99f1da184f69cf2b7cf6f110108caf9 100644
--- a/content/test/test_web_contents.cc
+++ b/content/test/test_web_contents.cc
@@ -265,7 +265,7 @@ void TestWebContents::SetOpener(TestWebContents* opener) {
void TestWebContents::AddPendingContents(TestWebContents* contents) {
// This is normally only done in WebContentsImpl::CreateNewWindow.
- ProcessRoutingIdPair key(contents->GetRenderViewHost()->GetProcess()->GetID(),
+ ProcessRoutingIdPair key(contents->GetMainFrame()->GetProcess()->GetID(),
Charlie Reis 2016/11/28 21:00:41 We shouldn't change this one. We should always ge
Lei Zhang 2016/11/30 10:27:00 Reverted.
contents->GetRenderViewHost()->GetRoutingID());
pending_contents_[key] = contents;
AddDestructionObserver(contents);

Powered by Google App Engine
This is Rietveld 408576698