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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h

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/preference_validation_delegate.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h
index 04302c7f98cdb101876386bedc244a09e3da978b..96bdeacdddd314c3e056e7cfaf87ff9d24bc8375 100644
--- a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h
+++ b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h
@@ -5,9 +5,10 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION_DELEGATE_H_
#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_PREFERENCE_VALIDATION_DELEGATE_H_
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/user_prefs/tracked/tracked_preference_validation_delegate.h"
class Profile;
@@ -22,8 +23,9 @@ class IncidentReceiver;
class PreferenceValidationDelegate
: public TrackedPreferenceValidationDelegate {
public:
- PreferenceValidationDelegate(Profile* profile,
- scoped_ptr<IncidentReceiver> incident_receiver);
+ PreferenceValidationDelegate(
+ Profile* profile,
+ std::unique_ptr<IncidentReceiver> incident_receiver);
~PreferenceValidationDelegate() override;
private:
@@ -41,7 +43,7 @@ class PreferenceValidationDelegate
bool is_personal) override;
Profile* profile_;
- scoped_ptr<IncidentReceiver> incident_receiver_;
+ std::unique_ptr<IncidentReceiver> incident_receiver_;
DISALLOW_COPY_AND_ASSIGN(PreferenceValidationDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698