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

Unified Diff: ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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
Index: ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm
diff --git a/ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm b/ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm
index 2e91f43e8e8d3cc0dfb79bb2efb55602fb20561b..0f256158efdfafc3903b0e95934adcc48455cd63 100644
--- a/ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm
+++ b/ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm
@@ -6,6 +6,7 @@
#include "base/mac/scoped_block.h"
#include "base/mac/scoped_nsobject.h"
+#include "base/memory/ptr_util.h"
#include "ios/web/public/test/scoped_testing_web_client.h"
#include "ios/web/public/test/test_browser_state.h"
#import "ios/web/public/test/test_web_client.h"
@@ -28,7 +29,7 @@ id GetScriptMessageMock(WKWebView* web_view, NSString* name) {
class CRWWKScriptMessageRouterTest : public web::WebTest {
public:
CRWWKScriptMessageRouterTest()
- : web_client_(make_scoped_ptr(new web::WebClient)) {}
+ : web_client_(base::WrapUnique(new web::WebClient)) {}
protected:
void SetUp() override {
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller_unittest.mm ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698