Index: third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
index 8935433e00ae5b61cbe2361cdab170bedb2df43d..0ea264d7f1089ddaa3520da0ec8e539c4c961eaa 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
@@ -17,8 +17,8 @@ void RenderingTest::SetUp() |
{ |
Page::PageClients pageClients; |
fillWithEmptyClients(pageClients); |
- DEFINE_STATIC_LOCAL(Persistent<EmptyChromeClient>, chromeClient, (EmptyChromeClient::create())); |
- pageClients.chromeClient = chromeClient.get(); |
+ DEFINE_STATIC_LOCAL(EmptyChromeClient, chromeClient, (EmptyChromeClient::create())); |
+ pageClients.chromeClient = &chromeClient; |
m_pageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients, m_frameLoaderClient.release(), settingOverrider()); |
Settings::setMockScrollbarsEnabled(true); |