Index: Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
diff --git a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
index 9918a745a94302a77460ab6ef3a7d3238c4e7664..61be4c1ae1895ca841b233785fd99da3da91e5ac 100644 |
--- a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
+++ b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
@@ -24,7 +24,7 @@ static const char overrideEnabled[] = "overrideEnabled"; |
void DeviceOrientationInspectorAgent::provideTo(Page& page) |
{ |
- OwnPtr<DeviceOrientationInspectorAgent> deviceOrientationAgent(adoptPtr(new DeviceOrientationInspectorAgent(page))); |
+ OwnPtrWillBeRawPtr<DeviceOrientationInspectorAgent> deviceOrientationAgent(adoptPtrWillBeNoop(new DeviceOrientationInspectorAgent(page))); |
page.inspectorController().registerModuleAgent(deviceOrientationAgent.release()); |
} |