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

Unified Diff: ios/web/web_state/js/crw_js_early_script_manager_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/js/crw_js_early_script_manager_unittest.mm
diff --git a/ios/web/web_state/js/crw_js_early_script_manager_unittest.mm b/ios/web/web_state/js/crw_js_early_script_manager_unittest.mm
index c06ad6ed3d97024c77e7739b0d6f1e8a408521ab..ef5f5a6fad2fab0649242c848aa4b490fb09ff29 100644
--- a/ios/web/web_state/js/crw_js_early_script_manager_unittest.mm
+++ b/ios/web/web_state/js/crw_js_early_script_manager_unittest.mm
@@ -5,6 +5,7 @@
#import "ios/web/web_state/js/crw_js_early_script_manager.h"
#include "base/mac/scoped_nsobject.h"
+#include "base/memory/ptr_util.h"
#import "ios/web/public/test/crw_test_js_injection_receiver.h"
#include "ios/web/public/test/scoped_testing_web_client.h"
#include "ios/web/public/web_client.h"
@@ -17,7 +18,8 @@ namespace {
class CRWJSEarlyScriptManagerTest : public PlatformTest {
public:
- CRWJSEarlyScriptManagerTest() : web_client_(make_scoped_ptr(new WebClient)) {}
+ CRWJSEarlyScriptManagerTest()
+ : web_client_(base::WrapUnique(new WebClient)) {}
protected:
void SetUp() override {
« no previous file with comments | « ios/web/web_state/js/credential_util_unittest.mm ('k') | ios/web/web_state/js/crw_js_window_id_manager_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698