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

Unified Diff: content/shell/shell_content_client.cc

Issue 9623027: Move --user-agent overriding logic from chrome into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: replace SetContentClient() with Initialize() Created 8 years, 8 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/shell/shell_content_client.cc
diff --git a/content/shell/shell_content_client.cc b/content/shell/shell_content_client.cc
index 1e6b5ddc8aea6ad01a78df274fd3217b075e0615..73de2f9b997306edc1b20041d8d83a4277be6bf4 100644
--- a/content/shell/shell_content_client.cc
+++ b/content/shell/shell_content_client.cc
@@ -6,7 +6,6 @@
#include "base/string_piece.h"
#include "ui/base/resource/resource_bundle.h"
-#include "webkit/glue/user_agent.h"
namespace content {
@@ -36,14 +35,6 @@ bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
return false;
}
-std::string ShellContentClient::GetUserAgent(bool* overriding) const {
- *overriding = false;
- // The "19" is so that sites that sniff for version think that this is
- // something reasonably current; the "77.34.5" is a hint that this isn't a
- // standard Chrome.
- return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5");
-}
-
string16 ShellContentClient::GetLocalizedString(int message_id) const {
return string16();
}

Powered by Google App Engine
This is Rietveld 408576698