Index: third_party/WebKit/Source/core/loader/EmptyClients.cpp |
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.cpp b/third_party/WebKit/Source/core/loader/EmptyClients.cpp |
index 94e8e6cdfc1e13a8e00503fa1ef65a8e5ffbb01e..decc95742b68407beab73c13b9b8e16e3e90b40c 100644 |
--- a/third_party/WebKit/Source/core/loader/EmptyClients.cpp |
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.cpp |
@@ -45,8 +45,8 @@ |
void fillWithEmptyClients(Page::PageClients& pageClients) |
{ |
- DEFINE_STATIC_LOCAL(ChromeClient, dummyChromeClient, (EmptyChromeClient::create())); |
- pageClients.chromeClient = &dummyChromeClient; |
+ DEFINE_STATIC_LOCAL(Persistent<ChromeClient>, dummyChromeClient, (EmptyChromeClient::create())); |
+ pageClients.chromeClient = dummyChromeClient.get(); |
DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ()); |
pageClients.contextMenuClient = &dummyContextMenuClient; |