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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments 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: chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc b/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc
index 1dee43c91a0785bf7eb011f39bd332fa37c25f1f..7d8ae87dc90fba6d0962eedf90b0d87a7012c923 100644
--- a/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/location.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
#include "chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident.h"
@@ -22,7 +23,7 @@ namespace safe_browsing {
namespace {
void VerifyVariationsSeedSignatureOnUIThread(
- scoped_ptr<IncidentReceiver> incident_receiver) {
+ std::unique_ptr<IncidentReceiver> incident_receiver) {
variations::VariationsService* variations_service =
g_browser_process->variations_service();
if (!variations_service)
@@ -30,13 +31,13 @@ void VerifyVariationsSeedSignatureOnUIThread(
std::string invalid_signature =
variations_service->GetInvalidVariationsSeedSignature();
if (!invalid_signature.empty()) {
- scoped_ptr<
+ std::unique_ptr<
ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident>
variations_seed_signature(
new ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident());
variations_seed_signature->set_variations_seed_signature(invalid_signature);
incident_receiver->AddIncidentForProcess(
- make_scoped_ptr(new VariationsSeedSignatureIncident(
+ base::WrapUnique(new VariationsSeedSignatureIncident(
std::move(variations_seed_signature))));
}
}
@@ -52,7 +53,7 @@ void RegisterVariationsSeedSignatureAnalysis() {
}
void VerifyVariationsSeedSignature(
- scoped_ptr<IncidentReceiver> incident_receiver) {
+ std::unique_ptr<IncidentReceiver> incident_receiver) {
content::BrowserThread::PostTask(
content::BrowserThread::UI,
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698