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

Unified Diff: ios/web/web_state/ui/crw_web_controller_unittest.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/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller_unittest.mm
diff --git a/ios/web/web_state/ui/crw_web_controller_unittest.mm b/ios/web/web_state/ui/crw_web_controller_unittest.mm
index ac5234db53729429c4432a19d78826549d47404e..c97ebe12578bac3b59951ff7ac306a45af7590ed 100644
--- a/ios/web/web_state/ui/crw_web_controller_unittest.mm
+++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm
@@ -7,6 +7,8 @@
#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
+#include <utility>
+
#include "base/callback_helpers.h"
#include "base/ios/ios_util.h"
#import "base/mac/bind_objc_block.h"
@@ -1118,7 +1120,7 @@ TEST_F(CRWUIWebViewWebControllerTest, POSTRequestCache) {
item->SetTransitionType(ui::PAGE_TRANSITION_FORM_SUBMIT);
item->set_is_renderer_initiated(true);
base::scoped_nsobject<CRWSessionEntry> currentEntry(
- [[CRWSessionEntry alloc] initWithNavigationItem:item.Pass()]);
+ [[CRWSessionEntry alloc] initWithNavigationItem:std::move(item)]);
base::scoped_nsobject<NSMutableURLRequest> request(
[[NSMutableURLRequest alloc] initWithURL:net::NSURLWithGURL(url)]);
[request setHTTPMethod:@"POST"];
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698