Index: chrome/browser/prerender/prerender_contents.cc |
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc |
index cba5b39360c9b099f9da6b508dc64092da33e58b..fa4dda58cedf030c2936afb7c7bfd6530f232201 100644 |
--- a/chrome/browser/prerender/prerender_contents.cc |
+++ b/chrome/browser/prerender/prerender_contents.cc |
@@ -374,14 +374,16 @@ void PrerenderContents::StartPrerendering( |
new_contents->SetUserAgentOverride( |
prerender_manager_->config().user_agent_override); |
- new_contents->GetController().LoadURLWithUserAgentOverride( |
- prerender_url_, |
- referrer_, |
- (origin_ == ORIGIN_OMNIBOX ? content::PAGE_TRANSITION_TYPED : |
- content::PAGE_TRANSITION_LINK), |
- false, |
- std::string(), |
- prerender_manager_->config().is_overriding_user_agent); |
+ content::NavigationController::LoadURLParams load_url_params( |
+ prerender_url_); |
+ load_url_params.referrer = referrer_; |
+ load_url_params.transition_type = (origin_ == ORIGIN_OMNIBOX ? |
+ content::PAGE_TRANSITION_TYPED : content::PAGE_TRANSITION_LINK); |
+ load_url_params.override_user_agent = |
+ prerender_manager_->config().is_overriding_user_agent ? |
+ content::NavigationController::UA_OVERRIDE_TRUE : |
+ content::NavigationController::UA_OVERRIDE_FALSE; |
+ new_contents->GetController().LoadURLWithParams(load_url_params); |
} |
bool PrerenderContents::GetChildId(int* child_id) const { |