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

Unified Diff: chromecast/browser/metrics/cast_metrics_service_client.h

Issue 1875623002: Convert //chromecast 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: chromecast/browser/metrics/cast_metrics_service_client.h
diff --git a/chromecast/browser/metrics/cast_metrics_service_client.h b/chromecast/browser/metrics/cast_metrics_service_client.h
index 86ccc15183041055188d79191bb9598ed82e7391..af88142c7f8be187ec02187a54f7417dbb705afa 100644
--- a/chromecast/browser/metrics/cast_metrics_service_client.h
+++ b/chromecast/browser/metrics/cast_metrics_service_client.h
@@ -7,11 +7,11 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
#include "components/metrics/metrics_service_client.h"
@@ -45,7 +45,7 @@ class CastMetricsServiceClient : public ::metrics::MetricsServiceClient {
public:
~CastMetricsServiceClient() override;
- static scoped_ptr<CastMetricsServiceClient> Create(
+ static std::unique_ptr<CastMetricsServiceClient> Create(
base::TaskRunner* io_task_runner,
PrefService* pref_service,
net::URLRequestContextGetter* request_context);
@@ -78,7 +78,7 @@ class CastMetricsServiceClient : public ::metrics::MetricsServiceClient {
void InitializeSystemProfileMetrics(
const base::Closure& done_callback) override;
void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
- scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader(
+ std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader(
const base::Callback<void(int)>& on_upload_complete) override;
base::TimeDelta GetStandardUploadInterval() override;
@@ -95,7 +95,7 @@ class CastMetricsServiceClient : public ::metrics::MetricsServiceClient {
// Returns whether or not metrics reporting is enabled.
bool IsReportingEnabled();
- scoped_ptr< ::metrics::ClientInfo> LoadClientInfo();
+ std::unique_ptr<::metrics::ClientInfo> LoadClientInfo();
void StoreClientInfo(const ::metrics::ClientInfo& client_info);
base::TaskRunner* const io_task_runner_;
@@ -110,8 +110,8 @@ class CastMetricsServiceClient : public ::metrics::MetricsServiceClient {
ExternalMetrics* platform_metrics_;
#endif // defined(OS_LINUX)
const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- scoped_ptr< ::metrics::MetricsStateManager> metrics_state_manager_;
- scoped_ptr< ::metrics::MetricsService> metrics_service_;
+ std::unique_ptr<::metrics::MetricsStateManager> metrics_state_manager_;
+ std::unique_ptr<::metrics::MetricsService> metrics_service_;
net::URLRequestContextGetter* const request_context_;
DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
« no previous file with comments | « chromecast/browser/media/media_pipeline_host.cc ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698