| Index: content/test/test_web_contents.cc
|
| diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
|
| index d645b317ae32eae856ae34cdb92a9e5cfcf3ff3d..99968d3934964dd386ea7a9b7819ce72ac223120 100644
|
| --- a/content/test/test_web_contents.cc
|
| +++ b/content/test/test_web_contents.cc
|
| @@ -146,12 +146,11 @@ void TestWebContents::CommitPendingNavigation() {
|
| page_id = GetMaxPageIDForSiteInstance(rvh->GetSiteInstance()) + 1;
|
| }
|
|
|
| - // Simulate the SwapOut_ACK that happens when we swap out the old
|
| - // RVH, before the navigation commits. This is needed when
|
| - // cross-site navigation happens (old_rvh != rvh).
|
| + rvh->SendNavigate(page_id, entry->GetURL());
|
| + // Simulate the SwapOut_ACK. This is needed when cross-site navigation happens
|
| + // (old_rvh != rvh).
|
| if (old_rvh != rvh)
|
| static_cast<RenderViewHostImpl*>(old_rvh)->OnSwappedOut(false);
|
| - rvh->SendNavigate(page_id, entry->GetURL());
|
| }
|
|
|
| void TestWebContents::ProceedWithCrossSiteNavigation() {
|
|
|