Index: third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp |
diff --git a/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp b/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp |
index 87fbe5b02443d4a85e84951c8133a9f0742cb60c..1b8b8c0d39d514ce84f3c36298eb3e81586df952 100644 |
--- a/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp |
+++ b/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp |
@@ -11,8 +11,8 @@ |
DeviceLightDispatcher& DeviceLightDispatcher::instance() |
{ |
- DEFINE_STATIC_LOCAL(DeviceLightDispatcher, deviceLightDispatcher, (new DeviceLightDispatcher)); |
- return deviceLightDispatcher; |
+ DEFINE_STATIC_LOCAL(Persistent<DeviceLightDispatcher>, deviceLightDispatcher, (new DeviceLightDispatcher())); |
+ return *deviceLightDispatcher; |
} |
DeviceLightDispatcher::DeviceLightDispatcher() |