Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
index dbeed629a02df14a7bef88672134a0d5b8a1d270..af8642e73bfab8f200bc04ef3fd4603fa72b7a1a 100644 |
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
@@ -16,6 +16,8 @@ |
#include "platform/ScopedOrientationChangeIndicator.h" |
#include "public/platform/WebScreenInfo.h" |
#include "public/platform/modules/screen_orientation/WebScreenOrientationClient.h" |
+#include <memory> |
+#include <utility> |
namespace blink { |
@@ -165,12 +167,13 @@ void ScreenOrientationController::setOrientation( |
notifyDispatcher(); |
} |
-void ScreenOrientationController::lock(WebScreenOrientationLockType orientation, |
- WebLockOrientationCallback* callback) { |
+void ScreenOrientationController::lock( |
+ WebScreenOrientationLockType orientation, |
+ std::unique_ptr<WebLockOrientationCallback> callback) { |
// When detached, the client is no longer valid. |
if (!m_client) |
return; |
- m_client->lockOrientation(orientation, callback); |
+ m_client->lockOrientation(orientation, std::move(callback)); |
} |
void ScreenOrientationController::unlock() { |