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

Unified Diff: content/test/test_webkit_platform_support.cc

Issue 147973002: Move SetJavaScriptFlags() from webkit to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/test/test_webkit_platform_support.cc
diff --git a/content/test/test_webkit_platform_support.cc b/content/test/test_webkit_platform_support.cc
index 373953576f6def030c433eae475b2b07097cf54d..ddf9708f967f1c0688131fd53ed64cde719d21b5 100644
--- a/content/test/test_webkit_platform_support.cc
+++ b/content/test/test_webkit_platform_support.cc
@@ -35,7 +35,6 @@
#include "webkit/browser/database/vfs_backend.h"
#include "webkit/child/webkitplatformsupport_impl.h"
#include "webkit/glue/simple_webmimeregistry_impl.h"
-#include "webkit/glue/webkit_glue.h"
#include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
#if defined(OS_WIN)
@@ -104,7 +103,8 @@ TestWebKitPlatformSupport::TestWebKitPlatformSupport() {
CommandLine::ForCurrentProcess()->AppendSwitch(switches::kEnableFileCookies);
// Test shell always exposes the GC.
- webkit_glue::SetJavaScriptFlags(" --expose-gc");
+ static const char expose_gc_flag[] = "--expose-gc";
+ v8::V8::SetFlagsFromString(expose_gc_flag, sizeof(expose_gc_flag) - 1);
}
TestWebKitPlatformSupport::~TestWebKitPlatformSupport() {

Powered by Google App Engine
This is Rietveld 408576698