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

Unified Diff: mojo/fetcher/data_fetcher_unittest.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (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
« no previous file with comments | « mojo/fetcher/data_fetcher.cc ('k') | mojo/fetcher/local_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/fetcher/data_fetcher_unittest.cc
diff --git a/mojo/fetcher/data_fetcher_unittest.cc b/mojo/fetcher/data_fetcher_unittest.cc
index cfaeb8438028572d1e35712186d8e03e507a4267..6074dfac98746296e8aac5b72be782214317f2f0 100644
--- a/mojo/fetcher/data_fetcher_unittest.cc
+++ b/mojo/fetcher/data_fetcher_unittest.cc
@@ -4,6 +4,8 @@
#include "mojo/fetcher/data_fetcher.h"
+#include <utility>
+
#include "base/auto_reset.h"
#include "base/bind.h"
#include "base/logging.h"
@@ -38,7 +40,7 @@ class FetchCallbackHelper {
private:
void CallbackHandler(scoped_ptr<shell::Fetcher> fetcher) {
- fetcher_ = fetcher.Pass();
+ fetcher_ = std::move(fetcher);
if (run_loop_)
run_loop_->Quit();
}
« no previous file with comments | « mojo/fetcher/data_fetcher.cc ('k') | mojo/fetcher/local_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698