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

Unified Diff: ios/chrome/browser/safe_browsing/safe_browsing_service.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ios/chrome/browser/safe_browsing/safe_browsing_service.h
diff --git a/ios/chrome/browser/safe_browsing/safe_browsing_service.h b/ios/chrome/browser/safe_browsing/safe_browsing_service.h
index 4b3507a37c797c685a54623369691b60afafd611..f3649ba49bf7c129b540bfa1e987bf701aa6818d 100644
--- a/ios/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/ios/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -9,6 +9,7 @@
#define IOS_CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
#include <map>
+#include <memory>
#include <string>
#include "base/callback.h"
@@ -16,7 +17,6 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/sequenced_task_runner_helpers.h"
#include "ios/chrome/browser/safe_browsing/util.h"
@@ -108,7 +108,7 @@ class SafeBrowsingService
// Adds a listener for when SafeBrowsing preferences might have changed.
// To get the current state, the callback should call enabled_by_prefs().
// Should only be called on the UI thread.
- scoped_ptr<StateSubscription> RegisterStateCallback(
+ std::unique_ptr<StateSubscription> RegisterStateCallback(
const base::Callback<void(void)>& callback);
// Sends serialized download recovery report to backend.

Powered by Google App Engine
This is Rietveld 408576698