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

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

Issue 2366333004: Revert of clean up replace contents()->GetMainFrame() to main_test_rfh() (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index f027f0feeb9cc716835ee6959fe74fbbf8699b85..9228766d4f31d81c16ca2fd49c6184cd5c808cb9 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -2934,7 +2934,7 @@
std::string());
int entry_id = contents->GetController().GetPendingEntry()->GetUniqueID();
if (IsBrowserSideNavigationEnabled())
- main_test_rfh()->PrepareForCommit();
+ contents->GetMainFrame()->PrepareForCommit();
EXPECT_TRUE(contents->CrossProcessNavigationPending());
EXPECT_EQ(1u, instance->GetRelatedActiveContentsCount());
contents->GetPendingMainFrame()->SendNavigate(1, entry_id, true, kUrl);
@@ -2971,7 +2971,7 @@
ui::PAGE_TRANSITION_TYPED,
std::string());
int entry_id = contents->GetController().GetPendingEntry()->GetUniqueID();
- main_test_rfh()->PrepareForCommit();
+ contents->GetMainFrame()->PrepareForCommit();
EXPECT_TRUE(contents->CrossProcessNavigationPending());
scoped_refptr<SiteInstance> instance_webui(
contents->GetPendingMainFrame()->GetSiteInstance());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698