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

Unified Diff: ios/web/web_state/js/crw_js_window_id_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: Add header 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_window_id_manager_unittest.mm
diff --git a/ios/web/web_state/js/crw_js_window_id_manager_unittest.mm b/ios/web/web_state/js/crw_js_window_id_manager_unittest.mm
index 758855c8efd83f8b89fa069bbdde85246c45871a..040e6566ac56d376224aa4329d12ad5e4b8218d3 100644
--- a/ios/web/web_state/js/crw_js_window_id_manager_unittest.mm
+++ b/ios/web/web_state/js/crw_js_window_id_manager_unittest.mm
@@ -5,6 +5,7 @@
#import "ios/web/web_state/js/crw_js_window_id_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"
#import "ios/web/public/test/js_test_util.h"
#include "ios/web/public/test/scoped_testing_web_client.h"
@@ -16,7 +17,7 @@ namespace {
class JSWindowIDManagerTest : public PlatformTest {
public:
- JSWindowIDManagerTest() : web_client_(make_scoped_ptr(new web::WebClient)) {}
+ JSWindowIDManagerTest() : web_client_(base::WrapUnique(new web::WebClient)) {}
protected:
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698