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

Unified Diff: components/web_view/navigation_controller.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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
« no previous file with comments | « components/web_view/local_find_options.cc ('k') | components/web_view/navigation_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/navigation_controller.cc
diff --git a/components/web_view/navigation_controller.cc b/components/web_view/navigation_controller.cc
index 87304fae2866a0f8c1158e79d71ca337d8b3552a..d64c0d8aac87d8ff15a24474037380a34b615232 100644
--- a/components/web_view/navigation_controller.cc
+++ b/components/web_view/navigation_controller.cc
@@ -4,6 +4,8 @@
#include "components/web_view/navigation_controller.h"
+#include <utility>
+
#include "components/web_view/frame.h"
#include "components/web_view/navigation_controller_delegate.h"
#include "components/web_view/navigation_entry.h"
@@ -99,7 +101,7 @@ void NavigationController::GoForward() {
void NavigationController::LoadURL(mojo::URLRequestPtr request) {
// TODO(erg): This mimics part of NavigationControllerImpl::LoadURL(), minus
// all the error checking.
- SetPendingEntry(make_scoped_ptr(new NavigationEntry(request.Pass())));
+ SetPendingEntry(make_scoped_ptr(new NavigationEntry(std::move(request))));
NavigateToPendingEntry(ReloadType::NO_RELOAD, false);
}
« no previous file with comments | « components/web_view/local_find_options.cc ('k') | components/web_view/navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698