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

Unified Diff: trunk/src/content/child/blink_platform_impl.cc

Issue 192283002: Revert 255858 "Simplify the user agent code some more since afte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/content/child/blink_platform_impl.h ('k') | trunk/src/content/child/npapi/plugin_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/child/blink_platform_impl.cc
===================================================================
--- trunk/src/content/child/blink_platform_impl.cc (revision 255866)
+++ trunk/src/content/child/blink_platform_impl.cc (working copy)
@@ -28,7 +28,6 @@
#include "base/time/time.h"
#include "content/child/web_socket_stream_handle_impl.h"
#include "content/child/web_url_loader_impl.h"
-#include "content/public/common/content_client.h"
#include "grit/blink_resources.h"
#include "grit/webkit_resources.h"
#include "grit/webkit_strings.h"
@@ -39,6 +38,7 @@
#include "third_party/WebKit/public/platform/WebString.h"
#include "ui/base/layout.h"
#include "webkit/child/webkit_child_helpers.h"
+#include "webkit/common/user_agent/user_agent.h"
#if defined(OS_ANDROID)
#include "base/android/sys_utils.h"
@@ -362,12 +362,8 @@
return new WebSocketStreamHandleImpl(this);
}
-WebString BlinkPlatformImpl::userAgent() {
- return WebString::fromUTF8(GetContentClient()->GetUserAgent());
-}
-
WebString BlinkPlatformImpl::userAgent(const WebURL& url) {
- return userAgent();
+ return WebString::fromUTF8(webkit_glue::GetUserAgent(url));
}
WebData BlinkPlatformImpl::parseDataURL(
« no previous file with comments | « trunk/src/content/child/blink_platform_impl.h ('k') | trunk/src/content/child/npapi/plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698