| 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);
|
| }
|
|
|
|
|