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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp

Issue 1855203002: Revert of Improve DEFINE_STATIC_LOCAL()'s handling of Blink GCed objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/modules/screen_orientation/ScreenOrientationDispatcher.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
index d8eca516f019d77fda238b2e0531cdb575c68be0..60ff40462c08eff73b9abedfcf9d8d42a20399f6 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp
@@ -10,8 +10,8 @@
ScreenOrientationDispatcher& ScreenOrientationDispatcher::instance()
{
- DEFINE_STATIC_LOCAL(ScreenOrientationDispatcher, screenOrientationDispatcher, (new ScreenOrientationDispatcher));
- return screenOrientationDispatcher;
+ DEFINE_STATIC_LOCAL(Persistent<ScreenOrientationDispatcher>, screenOrientationDispatcher, (new ScreenOrientationDispatcher()));
+ return *screenOrientationDispatcher;
}
ScreenOrientationDispatcher::ScreenOrientationDispatcher()

Powered by Google App Engine
This is Rietveld 408576698