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

Unified Diff: trunk/src/chrome/browser/net/chrome_http_user_agent_settings.h

Issue 192283002: Revert 255858 "Simplify the user agent code some more since afte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/net/chrome_http_user_agent_settings.h
===================================================================
--- trunk/src/chrome/browser/net/chrome_http_user_agent_settings.h (revision 255866)
+++ trunk/src/chrome/browser/net/chrome_http_user_agent_settings.h (working copy)
@@ -15,7 +15,8 @@
class PrefService;
// An implementation of |HttpUserAgentSettings| that provides HTTP header
-// Accept-Language value that tracks Pref settings.
+// Accept-Language value that tracks Pref settings and uses
+// |content::GetUserAgent| to provide the HTTP User-Agent header value.
class ChromeHttpUserAgentSettings : public net::HttpUserAgentSettings {
public:
// Must be called on the UI thread.
@@ -27,7 +28,7 @@
// net::HttpUserAgentSettings implementation
virtual std::string GetAcceptLanguage() const OVERRIDE;
- virtual std::string GetUserAgent() const OVERRIDE;
+ virtual std::string GetUserAgent(const GURL& url) const OVERRIDE;
private:
StringPrefMember pref_accept_language_;

Powered by Google App Engine
This is Rietveld 408576698