Chromium Code Reviews| 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 32f102dfbdf6e5f0414c9aeaf0030037c9590328..db9d9fcf64a4336dfb04f327ca5ac1bdcb1fdbbe 100644 |
| --- a/content/browser/web_contents/web_contents_impl_unittest.cc |
| +++ b/content/browser/web_contents/web_contents_impl_unittest.cc |
| @@ -2660,11 +2660,11 @@ TEST_F(WebContentsImplTest, ActiveContentsCountNavigate) { |
| std::string()); |
| if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| switches::kEnableBrowserSideNavigation)) { |
| - contents->GetMainFrame()->SendBeforeUnloadACK(true); |
| + contents->GetMainFrame()->PrepareForCommit(); |
| } |
| EXPECT_TRUE(contents->cross_navigation_pending()); |
| EXPECT_EQ(1u, instance->GetRelatedActiveContentsCount()); |
| - contents->CommitPendingNavigation(); |
| + contents->GetPendingMainFrame()->SendNavigate(0, kUrl); |
|
Charlie Reis
2015/03/31 23:13:55
Let's avoid using 0 for the page ID, since that te
clamy
2015/04/02 12:52:35
Done.
|
| EXPECT_EQ(1u, instance->GetRelatedActiveContentsCount()); |
| contents.reset(); |