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

Unified Diff: chrome/browser/net/preconnect.cc

Issue 191093002: Simplify the user agent code some more since after r255534 it's not affected by the site's URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: patchset 15 which works Created 6 years, 9 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: chrome/browser/net/preconnect.cc
===================================================================
--- chrome/browser/net/preconnect.cc (revision 255867)
+++ chrome/browser/net/preconnect.cc (working copy)
@@ -60,7 +60,7 @@
std::string user_agent;
if (context->http_user_agent_settings())
- user_agent = context->http_user_agent_settings()->GetUserAgent(url);
+ user_agent = context->http_user_agent_settings()->GetUserAgent();
net::HttpRequestInfo request_info;
request_info.url = url;
request_info.method = "GET";
« no previous file with comments | « chrome/browser/net/chrome_http_user_agent_settings.cc ('k') | chrome/browser/policy/cloud/user_policy_signin_service_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698