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

Unified Diff: webkit/common/user_agent/user_agent.h

Issue 178263007: Simplify the user agent overriding code, in preparation for moving it out of src/webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync 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: webkit/common/user_agent/user_agent.h
===================================================================
--- webkit/common/user_agent/user_agent.h (revision 255375)
+++ webkit/common/user_agent/user_agent.h (working copy)
@@ -13,12 +13,9 @@
namespace webkit_glue {
-// Sets the user agent. Pass true for overriding if this is a custom
-// user agent instead of the default one (in order to turn off any browser
-// sniffing workarounds). This must be called before GetUserAgent() can
+// Sets the user agent. This must be called before GetUserAgent() can
// be called.
-WEBKIT_USER_AGENT_EXPORT void SetUserAgent(const std::string& user_agent,
- bool overriding);
+WEBKIT_USER_AGENT_EXPORT void SetUserAgent(const std::string& user_agent);
// Returns the user agent to use for the given URL. SetUserAgent() must
// be called prior to calling this function.

Powered by Google App Engine
This is Rietveld 408576698