Index: Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
diff --git a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
index 4e2e45181876a94679bcab4173cfd36eecd910c1..7bdd2a1ce03ccf3bef9c53ae8d3f3b550184563a 100644 |
--- a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
+++ b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
@@ -25,7 +25,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()); |
} |