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

Unified Diff: components/signin/core/browser/signin_status_metrics_provider.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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/signin/core/browser/signin_status_metrics_provider.cc
diff --git a/components/signin/core/browser/signin_status_metrics_provider.cc b/components/signin/core/browser/signin_status_metrics_provider.cc
index 4d937dbb9b3bf3307869a29328ba1577b497a524..5552192bab8db7e5a0bbd8e56991486afdf93527 100644
--- a/components/signin/core/browser/signin_status_metrics_provider.cc
+++ b/components/signin/core/browser/signin_status_metrics_provider.cc
@@ -4,6 +4,8 @@
#include "components/signin/core/browser/signin_status_metrics_provider.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/metrics/histogram.h"
@@ -35,7 +37,7 @@ void RecordComputeSigninStatusHistogram(ComputeSigninStatus status) {
SigninStatusMetricsProvider::SigninStatusMetricsProvider(
scoped_ptr<SigninStatusMetricsProviderDelegate> delegate,
bool is_test)
- : delegate_(delegate.Pass()),
+ : delegate_(std::move(delegate)),
scoped_observer_(this),
is_test_(is_test),
weak_ptr_factory_(this) {
@@ -66,7 +68,7 @@ void SigninStatusMetricsProvider::ProvideGeneralMetrics(
// static
SigninStatusMetricsProvider* SigninStatusMetricsProvider::CreateInstance(
scoped_ptr<SigninStatusMetricsProviderDelegate> delegate) {
- return new SigninStatusMetricsProvider(delegate.Pass(), false);
+ return new SigninStatusMetricsProvider(std::move(delegate), false);
}
void SigninStatusMetricsProvider::OnSigninManagerCreated(

Powered by Google App Engine
This is Rietveld 408576698