| Index: content/test/layouttest_support.cc
|
| diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
|
| index 9f175e0a7aaef8ab0aa13d9b0d47c468c1b1f968..d756c57ddb620925c80350937b5740c877fc2ed5 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.
|
| + std::string flags("--expose-gc");
|
| + v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
|
| +
|
| RenderThreadImpl::current()->set_layout_test_mode(true);
|
| }
|
|
|
|
|