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

Unified Diff: ios/web/test/web_test.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 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 | « ios/web/shell/view_controller.mm ('k') | ios/web/web_state/js/credential_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_test.mm
diff --git a/ios/web/test/web_test.mm b/ios/web/test/web_test.mm
index cc49404a67c7dff02c8a81223587a0553f91d3f6..f6c781c758141ea283f1264aecfd7ccf58ed72e9 100644
--- a/ios/web/test/web_test.mm
+++ b/ios/web/test/web_test.mm
@@ -4,6 +4,8 @@
#import "ios/web/test/web_test.h"
+#include <utility>
+
#include "base/base64.h"
#include "base/strings/stringprintf.h"
#import "base/test/ios/wait_util.h"
@@ -263,7 +265,7 @@ NSString* WebTestWithWebController::CreateLoadCheck() {
CRWWebController* WebTestWithUIWebViewWebController::CreateWebController() {
scoped_ptr<WebStateImpl> web_state_impl(new WebStateImpl(GetBrowserState()));
- return [[TestWebController alloc] initWithWebState:web_state_impl.Pass()];
+ return [[TestWebController alloc] initWithWebState:std::move(web_state_impl)];
}
void WebTestWithUIWebViewWebController::LoadCommands(NSString* commands,
@@ -279,8 +281,8 @@ void WebTestWithUIWebViewWebController::LoadCommands(NSString* commands,
CRWWebController* WebTestWithWKWebViewWebController::CreateWebController() {
scoped_ptr<WebStateImpl> web_state_impl(new WebStateImpl(GetBrowserState()));
- return [[CRWWKWebViewWebController alloc] initWithWebState:
- web_state_impl.Pass()];
+ return [[CRWWKWebViewWebController alloc]
+ initWithWebState:std::move(web_state_impl)];
}
} // namespace web
« no previous file with comments | « ios/web/shell/view_controller.mm ('k') | ios/web/web_state/js/credential_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698