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

Unified Diff: components/security_interstitials/core/metrics_helper.cc

Issue 1921923002: Convert //components/[o-t]* 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/security_interstitials/core/metrics_helper.cc
diff --git a/components/security_interstitials/core/metrics_helper.cc b/components/security_interstitials/core/metrics_helper.cc
index d55a37caf5aa0428a3fc9b2498f449d1fec99fcd..ee1724c29431dd3d1242c8d914dfc888bb1ddad1 100644
--- a/components/security_interstitials/core/metrics_helper.cc
+++ b/components/security_interstitials/core/metrics_helper.cc
@@ -4,6 +4,7 @@
#include "components/security_interstitials/core/metrics_helper.h"
+#include <memory>
#include <utility>
#include "base/metrics/histogram.h"
@@ -166,7 +167,7 @@ void MetricsHelper::RecordUserDecisionToRappor(Decision decision) {
if (!rappor_service_ || (decision != PROCEED && decision != DONT_PROCEED))
return;
- scoped_ptr<rappor::Sample> sample =
+ std::unique_ptr<rappor::Sample> sample =
rappor_service_->CreateSample(settings_.rappor_report_type);
// This will populate, for example, "intersitial.malware.domain" or
« no previous file with comments | « components/security_interstitials/core/controller_client.cc ('k') | components/session_manager/core/session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698