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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1839023002: Cache user agent string in FrameLoaderClientImpl instead of BlinkPlatformImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index ed43c6ba7698695620d2501df450489b9365a34e..0cec76b75bf65dd0974b1298108b3519552e58b2 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -427,12 +427,7 @@ blink::WebSocketHandle* BlinkPlatformImpl::createWebSocketHandle() {
}
WebString BlinkPlatformImpl::userAgent() {
- CR_DEFINE_STATIC_LOCAL(
- blink::WebString, user_agent,
- (blink::WebString::fromUTF8(GetContentClient()->GetUserAgent())));
- DCHECK(user_agent ==
- blink::WebString::fromUTF8(GetContentClient()->GetUserAgent()));
- return user_agent;
+ return blink::WebString::fromUTF8(GetContentClient()->GetUserAgent());
}
WebData BlinkPlatformImpl::parseDataURL(const WebURL& url,
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698