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

Unified Diff: components/test_runner/web_test_interfaces.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
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 08b595abca890ce07e4cf420045864d3d546e2c8..184032205eb0c3199b034b226e15ec784cc3542c 100644
--- a/components/test_runner/web_test_interfaces.cc
+++ b/components/test_runner/web_test_interfaces.cc
@@ -93,22 +93,22 @@ WebTestInterfaces::CreateAppBannerClient() {
std::unique_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient(
WebViewTestProxyBase* web_view_test_proxy_base,
WebFrameTestProxyBase* web_frame_test_proxy_base) {
- return base::WrapUnique(new WebFrameTestClient(
+ return base::MakeUnique<WebFrameTestClient>(
interfaces_->GetTestRunner(), interfaces_->GetDelegate(),
- web_view_test_proxy_base, web_frame_test_proxy_base));
+ web_view_test_proxy_base, web_frame_test_proxy_base);
}
std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
WebViewTestProxyBase* web_view_test_proxy_base) {
- return base::WrapUnique(new WebViewTestClient(interfaces_->GetTestRunner(),
- web_view_test_proxy_base));
+ return base::MakeUnique<WebViewTestClient>(interfaces_->GetTestRunner(),
+ web_view_test_proxy_base);
}
std::unique_ptr<WebWidgetTestClient>
WebTestInterfaces::CreateWebWidgetTestClient(
WebWidgetTestProxyBase* web_widget_test_proxy_base) {
- return base::WrapUnique(new WebWidgetTestClient(interfaces_->GetTestRunner(),
- web_widget_test_proxy_base));
+ return base::MakeUnique<WebWidgetTestClient>(interfaces_->GetTestRunner(),
+ web_widget_test_proxy_base);
}
std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
« no previous file with comments | « components/test_runner/tracked_dictionary.cc ('k') | components/translate/core/browser/translate_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698