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

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: fixed 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
« no previous file with comments | « content/shell/renderer/shell_render_process_observer.cc ('k') | content/worker/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f013d77087a398a0c1e21a30a8610a2e78c8db30 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");
+ std::string flags("--expose-gc");
+ v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
}
TestWebKitPlatformSupport::~TestWebKitPlatformSupport() {
« no previous file with comments | « content/shell/renderer/shell_render_process_observer.cc ('k') | content/worker/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698