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

Unified Diff: ios/web/navigation/crw_session_controller.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ios/web/navigation/crw_session_controller.mm
diff --git a/ios/web/navigation/crw_session_controller.mm b/ios/web/navigation/crw_session_controller.mm
index 71cc610538d50ff5dd7596d43808177c5ddb2051..ba45a324632409f161b6965e8a754ff812dea82f 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <algorithm>
+#include <utility>
#include <vector>
#include "base/format_macros.h"
@@ -189,7 +190,7 @@ NSString* const kXCallbackParametersKey = @"xCallbackParameters";
for (size_t i = 0; i < items.size(); ++i) {
scoped_ptr<web::NavigationItem> item(items[i]);
base::scoped_nsobject<CRWSessionEntry> entry(
- [[CRWSessionEntry alloc] initWithNavigationItem:item.Pass()]);
+ [[CRWSessionEntry alloc] initWithNavigationItem:std::move(item)]);
[_entries addObject:entry];
}
self.currentNavigationIndex = currentIndex;
@@ -889,8 +890,8 @@ NSString* const kXCallbackParametersKey = @"xCallbackParameters";
item->SetTransitionType(transition);
item->SetIsOverridingUserAgent(useDesktopUserAgent);
item->set_is_renderer_initiated(rendererInitiated);
- return [
- [[CRWSessionEntry alloc] initWithNavigationItem:item.Pass()] autorelease];
+ return [[[CRWSessionEntry alloc] initWithNavigationItem:std::move(item)]
+ autorelease];
}
@end

Powered by Google App Engine
This is Rietveld 408576698