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

Unified Diff: ios/net/http_cache_helper.cc

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header 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/net/http_cache_helper.cc
diff --git a/ios/net/http_cache_helper.cc b/ios/net/http_cache_helper.cc
index 1702cace9014152953903b6545c6d084709fe827..45f86dbe2628de730509c2bb533ee501f1b5780b 100644
--- a/ios/net/http_cache_helper.cc
+++ b/ios/net/http_cache_helper.cc
@@ -30,7 +30,7 @@ void PostCallback(const scoped_refptr<base::TaskRunner>& task_runner,
}
// Clears the disk_cache::Backend on the IO thread and deletes |backend|.
-void DoomHttpCache(scoped_ptr<disk_cache::Backend*> backend,
+void DoomHttpCache(std::unique_ptr<disk_cache::Backend*> backend,
const scoped_refptr<base::TaskRunner>& client_task_runner,
const net::CompletionCallback& callback,
int error) {
@@ -66,7 +66,8 @@ void ClearHttpCacheOnIOThread(
if (sdch_manager)
sdch_manager->ClearData();
- scoped_ptr<disk_cache::Backend*> backend(new disk_cache::Backend*(nullptr));
+ std::unique_ptr<disk_cache::Backend*> backend(
+ new disk_cache::Backend*(nullptr));
disk_cache::Backend** backend_ptr = backend.get();
net::CompletionCallback doom_callback =
base::Bind(&DoomHttpCache, base::Passed(std::move(backend)),

Powered by Google App Engine
This is Rietveld 408576698