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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident_receiver.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/incident_receiver.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h b/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h
index 07b852dd8167bee950a1cb0bf9bbeba344ec3507..7f50289b755e836eb9fa2756f5d7669706f8a02b 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_receiver.h
@@ -5,7 +5,7 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_RECEIVER_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
class Profile;
@@ -21,15 +21,15 @@ class IncidentReceiver {
// Adds an incident relating to |profile|. Must be called from the UI thread.
virtual void AddIncidentForProfile(Profile* profile,
- scoped_ptr<Incident> incident) = 0;
+ std::unique_ptr<Incident> incident) = 0;
// Adds an incident relating to the entire browser process. May be called from
// any thread.
- virtual void AddIncidentForProcess(scoped_ptr<Incident> incident) = 0;
+ virtual void AddIncidentForProcess(std::unique_ptr<Incident> incident) = 0;
// Clears all data associated with the specified |incident| relating to the
// entire browser process. May be called from any thread.
- virtual void ClearIncidentForProcess(scoped_ptr<Incident> incident) = 0;
+ virtual void ClearIncidentForProcess(std::unique_ptr<Incident> incident) = 0;
};
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698