| Index: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
|
| diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
|
| index d1b3d5a96d75959561e95883a57145ea2b3af233..6a9da88a93b73f7411340a1896ab44a2f1a36157 100644
|
| --- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
|
| +++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp
|
| @@ -39,11 +39,11 @@ namespace blink {
|
| DeviceOrientationDispatcher& DeviceOrientationDispatcher::instance(bool absolute)
|
| {
|
| if (absolute) {
|
| - DEFINE_STATIC_LOCAL(Persistent<DeviceOrientationDispatcher>, deviceOrientationAbsoluteDispatcher, (new DeviceOrientationDispatcher(absolute)));
|
| - return *deviceOrientationAbsoluteDispatcher;
|
| + DEFINE_STATIC_LOCAL(DeviceOrientationDispatcher, deviceOrientationAbsoluteDispatcher, (new DeviceOrientationDispatcher(absolute)));
|
| + return deviceOrientationAbsoluteDispatcher;
|
| }
|
| - DEFINE_STATIC_LOCAL(Persistent<DeviceOrientationDispatcher>, deviceOrientationDispatcher, (new DeviceOrientationDispatcher(absolute)));
|
| - return *deviceOrientationDispatcher;
|
| + DEFINE_STATIC_LOCAL(DeviceOrientationDispatcher, deviceOrientationDispatcher, (new DeviceOrientationDispatcher(absolute)));
|
| + return deviceOrientationDispatcher;
|
| }
|
|
|
| DeviceOrientationDispatcher::DeviceOrientationDispatcher(bool absolute) : m_absolute(absolute)
|
|
|