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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.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/modules/device_orientation/DeviceMotionDispatcher.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp
index aee9b19b548395251aaf44df588913c74c6262dd..1c3e1d7c3afb7eb71c43bbe55d709b2eda00f4d3 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionDispatcher.cpp
@@ -38,8 +38,8 @@ namespace blink {
DeviceMotionDispatcher& DeviceMotionDispatcher::instance()
{
- DEFINE_STATIC_LOCAL(Persistent<DeviceMotionDispatcher>, deviceMotionDispatcher, (new DeviceMotionDispatcher()));
- return *deviceMotionDispatcher;
+ DEFINE_STATIC_LOCAL(DeviceMotionDispatcher, deviceMotionDispatcher, (new DeviceMotionDispatcher));
+ return deviceMotionDispatcher;
}
DeviceMotionDispatcher::DeviceMotionDispatcher()

Powered by Google App Engine
This is Rietveld 408576698