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

Unified Diff: content/child/scoped_web_callbacks.h

Issue 1544293002: Convert Pass()→std::move() in //content (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/child/scoped_web_callbacks.h
diff --git a/content/child/scoped_web_callbacks.h b/content/child/scoped_web_callbacks.h
index b0c3b2b4c4c6f31a165c37ab3b1a59c267af6557..0d682309d80036c159e301bd7b3b3783f38037c4 100644
--- a/content/child/scoped_web_callbacks.h
+++ b/content/child/scoped_web_callbacks.h
@@ -74,12 +74,12 @@ class ScopedWebCallbacks {
ScopedWebCallbacks(scoped_ptr<CallbacksType> callbacks,
const DestructionCallback& destruction_callback)
- : callbacks_(callbacks.Pass()),
+ : callbacks_(std::move(callbacks)),
destruction_callback_(destruction_callback) {}
~ScopedWebCallbacks() {
if (callbacks_)
- destruction_callback_.Run(callbacks_.Pass());
+ destruction_callback_.Run(std::move(callbacks_));
}
ScopedWebCallbacks(ScopedWebCallbacks&& other) { *this = std::move(other); }
@@ -90,7 +90,7 @@ class ScopedWebCallbacks {
return *this;
}
- scoped_ptr<CallbacksType> PassCallbacks() { return callbacks_.Pass(); }
+ scoped_ptr<CallbacksType> PassCallbacks() { return std::move(callbacks_); }
private:
scoped_ptr<CallbacksType> callbacks_;
« no previous file with comments | « content/child/resource_scheduling_filter.cc ('k') | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698