Index: components/test_runner/mock_screen_orientation_client.h |
diff --git a/components/test_runner/mock_screen_orientation_client.h b/components/test_runner/mock_screen_orientation_client.h |
index 1c5034974a8767630bb9d697f5778bf86e44d131..495184cf25502165bf53376555b7df53736dea1c 100644 |
--- a/components/test_runner/mock_screen_orientation_client.h |
+++ b/components/test_runner/mock_screen_orientation_client.h |
@@ -5,6 +5,8 @@ |
#ifndef COMPONENTS_TEST_RUNNER_MOCK_SCREEN_ORIENTATION_CLIENT_H_ |
#define COMPONENTS_TEST_RUNNER_MOCK_SCREEN_ORIENTATION_CLIENT_H_ |
+#include <memory> |
+ |
#include "base/compiler_specific.h" |
#include "base/macros.h" |
#include "components/test_runner/test_runner_export.h" |
@@ -36,12 +38,13 @@ class TEST_RUNNER_EXPORT MockScreenOrientationClient |
private: |
// From blink::WebScreenOrientationClient. |
- void lockOrientation(blink::WebScreenOrientationLockType orientation, |
- blink::WebLockOrientationCallback* callback) override; |
+ void lockOrientation( |
+ blink::WebScreenOrientationLockType orientation, |
+ std::unique_ptr<blink::WebLockOrientationCallback> callback) override; |
void unlockOrientation() override; |
void UpdateLockSync(blink::WebScreenOrientationLockType, |
- blink::WebLockOrientationCallback*); |
+ std::unique_ptr<blink::WebLockOrientationCallback>); |
void ResetLockSync(); |
void UpdateScreenOrientation(blink::WebScreenOrientationType); |