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

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

Issue 186883002: Move user_agent code from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: link chrome Created 6 years, 10 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: content/public/common/content_client.cc
diff --git a/content/public/common/content_client.cc b/content/public/common/content_client.cc
index 54db51778a46c3fd524de5c5257dff08f8378609..d0fc19e26f5c55cdbac435ace85a98edd0b5206a 100644
--- a/content/public/common/content_client.cc
+++ b/content/public/common/content_client.cc
@@ -6,8 +6,8 @@
#include "base/logging.h"
#include "base/strings/string_piece.h"
+#include "content/public/common/user_agent.h"
jam 2014/03/05 00:09:26 nit: not needed
tfarina 2014/03/05 00:42:52 Done.
#include "ui/gfx/image/image.h"
-#include "webkit/common/user_agent/user_agent.h"
namespace content {
@@ -36,13 +36,6 @@ class InternalTestInitializer {
void SetContentClient(ContentClient* client) {
g_client = client;
-
- // 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);
jam 2014/03/05 00:09:26 i don't see any code which now calls ContentClient
tfarina 2014/03/05 00:22:11 https://code.google.com/p/chromium/codesearch#sear
jam 2014/03/05 08:34:56 sorry I wasn't clear. I mean, user_agent.cc needs
tfarina 2014/03/05 13:31:55 Sorry, I have no idea what you are asking me to do
- }
}
ContentClient* GetContentClient() {
@@ -61,11 +54,6 @@ ContentUtilityClient* SetUtilityClientForTesting(ContentUtilityClient* u) {
return InternalTestInitializer::SetUtility(u);
}
-const std::string& GetUserAgent(const GURL& url) {
- DCHECK(g_client);
- return webkit_glue::GetUserAgent(url);
-}
-
ContentClient::ContentClient()
: browser_(NULL), plugin_(NULL), renderer_(NULL), utility_(NULL) {
}

Powered by Google App Engine
This is Rietveld 408576698