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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 5e6ba3c898ad4715baacd672aaa0bc29eb00de49..6ca1f0595ff9f6dcf999ce0b31d6acc03ddb0feb 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -4,6 +4,8 @@
#include "content/browser/frame_host/navigator_impl.h"
+#include <utility>
+
#include "base/metrics/histogram.h"
#include "base/time/time.h"
#include "content/browser/frame_host/frame_tree.h"
@@ -809,10 +811,9 @@ void NavigatorImpl::CommitNavigation(FrameTreeNode* frame_tree_node,
navigation_request->TransferNavigationHandleOwnership(render_frame_host);
render_frame_host->navigation_handle()->ReadyToCommitNavigation(
render_frame_host, response ? response->head.headers : nullptr);
- render_frame_host->CommitNavigation(response, body.Pass(),
+ render_frame_host->CommitNavigation(response, std::move(body),
navigation_request->common_params(),
navigation_request->request_params());
-
}
// PlzNavigate
@@ -1013,7 +1014,7 @@ void NavigatorImpl::DidStartMainFrameNavigation(
entry->set_should_replace_entry(pending_entry->should_replace_entry());
entry->SetRedirectChain(pending_entry->GetRedirectChain());
}
- controller_->SetPendingEntry(entry.Pass());
+ controller_->SetPendingEntry(std::move(entry));
if (delegate_)
delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL);
}
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698