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

Unified Diff: components/rlz/rlz_tracker.cc

Issue 1552023002: Convert Pass()→std::move() in //components (CrOS edition) (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: components/rlz/rlz_tracker.cc
diff --git a/components/rlz/rlz_tracker.cc b/components/rlz/rlz_tracker.cc
index 00b8dd9a569b787cfd01d3182229da0420139701..32284b8718c11d3772093061bb4e479fe04df5c8 100644
--- a/components/rlz/rlz_tracker.cc
+++ b/components/rlz/rlz_tracker.cc
@@ -9,6 +9,7 @@
#include "components/rlz/rlz_tracker.h"
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
@@ -177,14 +178,14 @@ void RLZTracker::SetRlzDelegate(scoped_ptr<RLZTrackerDelegate> delegate) {
// RLZTracker::SetRlzDelegate is called at Profile creation time which can
// happens multiple time on ChromeOS, so do nothing if the delegate already
// exists.
- tracker->SetDelegate(delegate.Pass());
+ tracker->SetDelegate(std::move(delegate));
}
}
void RLZTracker::SetDelegate(scoped_ptr<RLZTrackerDelegate> delegate) {
DCHECK(delegate);
DCHECK(!delegate_);
- delegate_ = delegate.Pass();
+ delegate_ = std::move(delegate);
worker_pool_token_ = delegate_->GetBlockingPool()->GetSequenceToken();
}

Powered by Google App Engine
This is Rietveld 408576698