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

Unified Diff: trunk/src/content/test/webkit_support.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
Index: trunk/src/content/test/webkit_support.cc
===================================================================
--- trunk/src/content/test/webkit_support.cc (revision 255866)
+++ trunk/src/content/test/webkit_support.cc (working copy)
@@ -18,6 +18,8 @@
#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
#include "ui/base/resource/resource_bundle.h"
#include "url/url_util.h"
+#include "webkit/common/user_agent/user_agent.h"
+#include "webkit/common/user_agent/user_agent_util.h"
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
@@ -108,6 +110,8 @@
// at same time.
url_util::Initialize();
test_environment = new TestEnvironment;
+ webkit_glue::SetUserAgent(webkit_glue::BuildUserAgentFromProduct(
+ "DumpRenderTree/0.0.0.0"));
}
void TearDownTestEnvironment() {
« no previous file with comments | « trunk/src/content/test/test_webkit_platform_support.cc ('k') | trunk/src/net/url_request/http_user_agent_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698