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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.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_report_uploader_impl.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.h b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.h
index 4c755714b74408b53e89cd3b36a37f367c0d1482..231021521f9a36015aced772d3af20ab47765736 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.h
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.h
@@ -5,11 +5,11 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOADER_IMPL_H_
#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_REPORT_UPLOADER_IMPL_H_
+#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_report_uploader.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -39,7 +39,7 @@ class IncidentReportUploaderImpl : public IncidentReportUploader,
// Uploads a report with a caller-provided URL context. |callback| will be run
// when the upload is complete. Returns NULL if |report| cannot be serialized
// for transmission, in which case the delegate is not notified.
- static scoped_ptr<IncidentReportUploader> UploadReport(
+ static std::unique_ptr<IncidentReportUploader> UploadReport(
const OnResultCallback& callback,
const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
const ClientIncidentReport& report);
@@ -58,7 +58,7 @@ class IncidentReportUploaderImpl : public IncidentReportUploader,
// The underlying URL fetcher. The instance is alive from construction through
// OnURLFetchComplete.
- scoped_ptr<net::URLFetcher> url_fetcher_;
+ std::unique_ptr<net::URLFetcher> url_fetcher_;
// The time at which the upload was initiated.
base::TimeTicks time_begin_;

Powered by Google App Engine
This is Rietveld 408576698