| Index: content/browser/frame_host/navigator_impl.cc
|
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
|
| index 82689769f56d82e08abd174f236bfb1c218386e6..07163766a2165bf950a6059ed48d76084f87bb94 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -1019,11 +1019,14 @@ void NavigatorImpl::OnBeginNavigation(
|
| navigation_data_.reset();
|
| }
|
| NavigationEntryImpl* pending_entry = controller_->GetPendingEntry();
|
| + NavigationEntryImpl* current_entry = controller_->GetLastCommittedEntry();
|
| + bool override_user_agent =
|
| + current_entry ? current_entry->GetIsOverridingUserAgent() : false;
|
| frame_tree_node->CreatedNavigationRequest(
|
| NavigationRequest::CreateRendererInitiated(
|
| frame_tree_node, pending_entry, common_params, begin_params,
|
| controller_->GetLastCommittedEntryIndex(),
|
| - controller_->GetEntryCount()));
|
| + controller_->GetEntryCount(), override_user_agent));
|
| NavigationRequest* navigation_request = frame_tree_node->navigation_request();
|
|
|
| // For main frames, NavigationHandle will be created after the call to
|
|
|