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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.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/download_protection_service.h
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h
index a43a68db3fcbe37dc4911f6a8ac98e4171fa2458..bba8f077c20d36fd2a48ec311bf3af9f03cbcbdd 100644
--- a/chrome/browser/safe_browsing/download_protection_service.h
+++ b/chrome/browser/safe_browsing/download_protection_service.h
@@ -10,6 +10,7 @@
#include <stdint.h>
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -20,7 +21,6 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/safe_browsing/ui_manager.h"
#include "components/safe_browsing_db/database_manager.h"
#include "net/url_request/url_request_context_getter.h"
@@ -70,7 +70,7 @@ class DownloadProtectionService {
ClientDownloadRequestCallbackList;
// A subscription to a registered ClientDownloadRequest callback.
- typedef scoped_ptr<ClientDownloadRequestCallbackList::Subscription>
+ typedef std::unique_ptr<ClientDownloadRequestCallbackList::Subscription>
ClientDownloadRequestSubscription;
// Creates a download service. The service is initially disabled. You need
@@ -239,7 +239,7 @@ class DownloadProtectionService {
int64_t download_request_timeout_ms_;
- scoped_ptr<DownloadFeedbackService> feedback_service_;
+ std::unique_ptr<DownloadFeedbackService> feedback_service_;
// A list of callbacks to be run on the main thread when a
// ClientDownloadRequest has been formed.
« no previous file with comments | « chrome/browser/safe_browsing/download_feedback_service.cc ('k') | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698