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

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.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/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index eab029b6cc49f3c56aa9653ccad2bfae9f33cfbe..941aabe559ecfc283b12e01bfa3442d095ee6b95 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <stdint.h>
+#include <utility>
#include "base/command_line.h"
#include "base/logging.h"
@@ -851,7 +852,7 @@ TEST_F(WebContentsImplTest, NavigateFromRestoredSitelessUrl) {
native_url, Referrer(), ui::PAGE_TRANSITION_LINK, false,
std::string(), browser_context());
new_entry->SetPageID(0);
- entries.push_back(new_entry.Pass());
+ entries.push_back(std::move(new_entry));
controller().Restore(
0,
NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY,
@@ -901,7 +902,7 @@ TEST_F(WebContentsImplTest, NavigateFromRestoredRegularUrl) {
regular_url, Referrer(), ui::PAGE_TRANSITION_LINK, false,
std::string(), browser_context());
new_entry->SetPageID(0);
- entries.push_back(new_entry.Pass());
+ entries.push_back(std::move(new_entry));
controller().Restore(
0,
NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY,
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698