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

Unified Diff: ios/web/navigation/navigation_manager_impl.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/navigation/navigation_item_impl.mm ('k') | ios/web/net/cert_verifier_block_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_manager_impl.mm
diff --git a/ios/web/navigation/navigation_manager_impl.mm b/ios/web/navigation/navigation_manager_impl.mm
index 647171b1d8664ff6dd569e4209c854e32e011e7e..4a5f4eb39ce42cbfc0f4da51f59f33b3b8fe0628 100644
--- a/ios/web/navigation/navigation_manager_impl.mm
+++ b/ios/web/navigation/navigation_manager_impl.mm
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <utility>
+
#include "base/logging.h"
#import "ios/web/navigation/crw_session_controller+private_constructors.h"
#import "ios/web/navigation/crw_session_controller.h"
@@ -74,7 +76,7 @@ void NavigationManagerImpl::ReplaceSessionHistory(
ScopedVector<web::NavigationItem> items,
int current_index) {
SetSessionController([[[CRWSessionController alloc]
- initWithNavigationItems:items.Pass()
+ initWithNavigationItems:std::move(items)
currentIndex:current_index
browserState:browser_state_] autorelease]);
}
@@ -273,7 +275,7 @@ void NavigationManagerImpl::Reload(bool check_for_reposts) {
scoped_ptr<std::vector<BrowserURLRewriter::URLRewriter>>
NavigationManagerImpl::GetTransientURLRewriters() {
- return transient_url_rewriters_.Pass();
+ return std::move(transient_url_rewriters_);
}
void NavigationManagerImpl::RemoveTransientURLRewriters() {
« no previous file with comments | « ios/web/navigation/navigation_item_impl.mm ('k') | ios/web/net/cert_verifier_block_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698