Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Unified Diff: net/url_request/url_request_http_job.cc

Issue 19025: Add support for UA spoofing, and spoof Safari's UA string when loading URLs... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698