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

Unified Diff: net/url_request/url_request_inet_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_inet_job.cc
===================================================================
--- net/url_request/url_request_inet_job.cc (revision 8714)
+++ net/url_request/url_request_inet_job.cc (working copy)
@@ -83,8 +83,8 @@
// TODO(darin): we should re-create the internet if the UA string changes,
// but we have to be careful about existing users of this internet.
if (!the_internet_) {
- InitializeTheInternet(
- request->context() ? request->context()->user_agent() : std::string());
+ InitializeTheInternet(request->context() ?
wtc 2009/01/27 19:19:24 Nit: there is a lint error in one of these lines (
+ request->context()->GetUserAgent(GURL()) : std::string());
}
#ifndef NDEBUG
DCHECK(MessageLoop::current() == my_message_loop_) <<

Powered by Google App Engine
This is Rietveld 408576698