Index: content/test/test_blink_web_unit_test_support.cc |
diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc |
index ff20a91ee457fdf318a487b7d0c1209ac6f2df45..50349664235ffdc85142758a54fe5e39cf43dedc 100644 |
--- a/content/test/test_blink_web_unit_test_support.cc |
+++ b/content/test/test_blink_web_unit_test_support.cc |
@@ -268,12 +268,12 @@ |
return &compositor_support_; |
} |
-std::unique_ptr<blink::WebGestureCurve> |
-TestBlinkWebUnitTestSupport::CreateFlingAnimationCurve( |
+blink::WebGestureCurve* TestBlinkWebUnitTestSupport::CreateFlingAnimationCurve( |
blink::WebGestureDevice device_source, |
const blink::WebFloatPoint& velocity, |
const blink::WebSize& cumulative_scroll) { |
- return base::MakeUnique<WebGestureCurveMock>(velocity, cumulative_scroll); |
+ // Caller will retain and release. |
+ return new WebGestureCurveMock(velocity, cumulative_scroll); |
} |
blink::WebURLLoaderMockFactory* |
@@ -329,10 +329,10 @@ |
} // namespace |
#endif // BUILDFLAG(ENABLE_WEBRTC) |
-std::unique_ptr<blink::WebRTCCertificateGenerator> |
+blink::WebRTCCertificateGenerator* |
TestBlinkWebUnitTestSupport::CreateRTCCertificateGenerator() { |
#if BUILDFLAG(ENABLE_WEBRTC) |
- return base::MakeUnique<TestWebRTCCertificateGenerator>(); |
+ return new TestWebRTCCertificateGenerator(); |
#else |
return nullptr; |
#endif |