Index: net/url_request/url_request_http_job.cc |
=================================================================== |
--- net/url_request/url_request_http_job.cc (revision 8714) |
+++ net/url_request/url_request_http_job.cc (working copy) |
@@ -96,8 +96,10 @@ |
request_info_.method = request_->method(); |
request_info_.load_flags = request_->load_flags(); |
- if (request_->context()) |
- request_info_.user_agent = request_->context()->user_agent(); |
+ if (request_->context()) { |
+ request_info_.user_agent = |
+ request_->context()->GetUserAgent(request_->url()); |
+ } |
AddExtraHeaders(); |