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(); |
} |