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

Unified Diff: content/common/content_client.cc

Issue 8234013: Add a content::GetUserAgent() to wrap webkit_glue::GetUserAgent() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clarify requirements around GetUserAgent Created 9 years, 2 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/common/content_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_client.cc
diff --git a/content/common/content_client.cc b/content/common/content_client.cc
index 4622ce45b9607f812869637e6dccaca96588b6ef..ed46636e8b2c7984b802e54f1c4807ac8fb5f3cc 100644
--- a/content/common/content_client.cc
+++ b/content/common/content_client.cc
@@ -4,6 +4,7 @@
#include "content/common/content_client.h"
+#include "base/logging.h"
#include "base/string_piece.h"
#include "webkit/glue/webkit_glue.h"
@@ -32,6 +33,11 @@ ContentClient* GetContentClient() {
return g_client;
}
+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) {
}
« no previous file with comments | « content/common/content_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698