Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: components/test_runner/web_test_interfaces.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/web_test_interfaces.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_interfaces.cc
diff --git a/components/test_runner/web_test_interfaces.cc b/components/test_runner/web_test_interfaces.cc
index 6fdce47da908fa5eaede74249db9b913896b3186..374636a09de5d22539a96853f36d385a35a386a1 100644
--- a/components/test_runner/web_test_interfaces.cc
+++ b/components/test_runner/web_test_interfaces.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/memory/ptr_util.h"
#include "components/test_runner/app_banner_client.h"
#include "components/test_runner/mock_web_audio_device.h"
#include "components/test_runner/mock_web_media_stream_center.h"
@@ -80,24 +81,24 @@ WebAudioDevice* WebTestInterfaces::CreateAudioDevice(double sample_rate) {
return new MockWebAudioDevice(sample_rate);
}
-scoped_ptr<blink::WebAppBannerClient>
+std::unique_ptr<blink::WebAppBannerClient>
WebTestInterfaces::CreateAppBannerClient() {
- scoped_ptr<AppBannerClient> client(new AppBannerClient);
+ std::unique_ptr<AppBannerClient> client(new AppBannerClient);
interfaces_->SetAppBannerClient(client.get());
return std::move(client);
}
-scoped_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient(
+std::unique_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient(
WebTestProxyBase* web_test_proxy_base) {
- return make_scoped_ptr(new WebFrameTestClient(interfaces_->GetTestRunner(),
- interfaces_->GetDelegate(),
- web_test_proxy_base));
+ return base::WrapUnique(new WebFrameTestClient(interfaces_->GetTestRunner(),
+ interfaces_->GetDelegate(),
+ web_test_proxy_base));
}
-scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
+std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
WebTestProxyBase* web_test_proxy_base) {
- return make_scoped_ptr(new WebViewTestClient(interfaces_->GetTestRunner(),
- web_test_proxy_base));
+ return base::WrapUnique(
+ new WebViewTestClient(interfaces_->GetTestRunner(), web_test_proxy_base));
}
std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
« no previous file with comments | « components/test_runner/web_test_interfaces.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698