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

Unified Diff: components/metrics/metrics_service.cc

Issue 1159883003: Substituting pattern ScopedVector push_back(ptr.release()) with push_back(ptr.Pass()) in components… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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 | « components/metrics/daily_event.cc ('k') | components/metrics/serialization/serialization_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index fe5348940b60d0be62aeb8088a6542d5fe6cdbdb..598d9daa7f813613f113d61d43595d1e43575fa7 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -1045,7 +1045,7 @@ void MetricsService::RegisterSyntheticFieldTrial(
void MetricsService::RegisterMetricsProvider(
scoped_ptr<MetricsProvider> provider) {
DCHECK_EQ(INITIALIZED, state_);
- metrics_providers_.push_back(provider.release());
+ metrics_providers_.push_back(provider.Pass());
}
void MetricsService::CheckForClonedInstall(
« no previous file with comments | « components/metrics/daily_event.cc ('k') | components/metrics/serialization/serialization_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698