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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.cpp

Issue 1850413002: Improve DEFINE_STATIC_LOCAL()'s handling of Blink GCed objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address compilation failure Created 4 years, 8 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: 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 decc95742b68407beab73c13b9b8e16e3e90b40c..94e8e6cdfc1e13a8e00503fa1ef65a8e5ffbb01e 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.cpp
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
@@ -45,8 +45,8 @@ namespace blink {
void fillWithEmptyClients(Page::PageClients& pageClients)
{
- DEFINE_STATIC_LOCAL(Persistent<ChromeClient>, dummyChromeClient, (EmptyChromeClient::create()));
- pageClients.chromeClient = dummyChromeClient.get();
+ DEFINE_STATIC_LOCAL(ChromeClient, dummyChromeClient, (EmptyChromeClient::create()));
+ pageClients.chromeClient = &dummyChromeClient;
DEFINE_STATIC_LOCAL(EmptyContextMenuClient, dummyContextMenuClient, ());
pageClients.contextMenuClient = &dummyContextMenuClient;

Powered by Google App Engine
This is Rietveld 408576698