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

Unified Diff: content/test/layouttest_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/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 9f175e0a7aaef8ab0aa13d9b0d47c468c1b1f968..feaee214a51d62e7f4a222f3e99cb152ba30adb8 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -92,6 +92,10 @@ void SetMockDeviceOrientationData(const WebDeviceOrientationData& data) {
}
void EnableRendererLayoutTestMode() {
+ // We always expose GC to layout tests.
+ static const char expose_gc_flag[] = "--expose-gc";
+ v8::V8::SetFlagsFromString(expose_gc_flag, sizeof(expose_gc_flag) - 1);
+
RenderThreadImpl::current()->set_layout_test_mode(true);
}

Powered by Google App Engine
This is Rietveld 408576698