| Index: chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc
|
| diff --git a/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc b/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc
|
| index 244d30723497436130320cec743d3f45e555eca1..cc463519e0ca98f939a3eb30c4a64aef12ee6c1b 100644
|
| --- a/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc
|
| +++ b/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc
|
| @@ -141,11 +141,7 @@ void PageLoadMetricsObserverTestHarness::NavigateWithPageTransitionAndCommit(
|
| const GURL& url,
|
| ui::PageTransition transition) {
|
| controller().LoadURL(url, content::Referrer(), transition, std::string());
|
| - int pending_id = controller().GetPendingEntry()->GetUniqueID();
|
| - const bool did_create_new_entry = true;
|
| - content::WebContentsTester::For(web_contents())
|
| - ->TestDidNavigate(web_contents()->GetMainFrame(), 1, pending_id,
|
| - did_create_new_entry, url, transition);
|
| + content::WebContentsTester::For(web_contents())->CommitPendingNavigation();
|
| }
|
|
|
| } // namespace page_load_metrics
|
|
|