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

Unified Diff: content/public/common/content_client.cc

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: update 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/webkit_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_client.cc
===================================================================
--- content/public/common/content_client.cc (revision 255375)
+++ content/public/common/content_client.cc (working copy)
@@ -40,9 +40,8 @@
// Set the default user agent as provided by the client. We need to make
// sure this is done before webkit_glue::GetUserAgent() is called (so that
// the UA doesn't change).
- if (client) {
- webkit_glue::SetUserAgent(client->GetUserAgent(), false);
- }
+ if (client)
+ webkit_glue::SetUserAgent(client->GetUserAgent());
}
ContentClient* GetContentClient() {
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/webkit_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698