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

Unified Diff: components/metrics_services_manager/metrics_services_manager_client.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … Created 4 years, 8 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
Index: components/metrics_services_manager/metrics_services_manager_client.h
diff --git a/components/metrics_services_manager/metrics_services_manager_client.h b/components/metrics_services_manager/metrics_services_manager_client.h
index eabc53baa89fb69831623e3553c9f0e12599d07c..40c6d0d037ab9cc85bdea82c759637186e1a2b99 100644
--- a/components/metrics_services_manager/metrics_services_manager_client.h
+++ b/components/metrics_services_manager/metrics_services_manager_client.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_
#define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_
+#include <memory>
+
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
namespace metrics {
class MetricsServiceClient;
@@ -33,10 +34,10 @@ class MetricsServicesManagerClient {
virtual ~MetricsServicesManagerClient() {}
// Methods that create the various services in the context of the embedder.
- virtual scoped_ptr<rappor::RapporService> CreateRapporService() = 0;
- virtual scoped_ptr<variations::VariationsService>
+ virtual std::unique_ptr<rappor::RapporService> CreateRapporService() = 0;
+ virtual std::unique_ptr<variations::VariationsService>
CreateVariationsService() = 0;
- virtual scoped_ptr<metrics::MetricsServiceClient>
+ virtual std::unique_ptr<metrics::MetricsServiceClient>
CreateMetricsServiceClient() = 0;
// Returns the URL request context in which the metrics services should

Powered by Google App Engine
This is Rietveld 408576698