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

Unified Diff: content/browser/appcache/appcache_backend_impl.cc

Issue 1874893002: Convert //content/browser 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
« no previous file with comments | « content/browser/appcache/appcache_backend_impl.h ('k') | content/browser/appcache/appcache_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_backend_impl.cc
diff --git a/content/browser/appcache/appcache_backend_impl.cc b/content/browser/appcache/appcache_backend_impl.cc
index c3bb533f037c05e08980999bd641a231ae02100b..0ac9bc69ff221629915b18cf7bc716e29ef94551 100644
--- a/content/browser/appcache/appcache_backend_impl.cc
+++ b/content/browser/appcache/appcache_backend_impl.cc
@@ -143,11 +143,12 @@ void AppCacheBackendImpl::GetResourceList(
host->GetResourceList(resource_infos);
}
-scoped_ptr<AppCacheHost> AppCacheBackendImpl::TransferHostOut(int host_id) {
+std::unique_ptr<AppCacheHost> AppCacheBackendImpl::TransferHostOut(
+ int host_id) {
HostMap::iterator found = hosts_.find(host_id);
if (found == hosts_.end()) {
NOTREACHED();
- return scoped_ptr<AppCacheHost>();
+ return std::unique_ptr<AppCacheHost>();
}
AppCacheHost* transferree = found->second;
@@ -157,11 +158,11 @@ scoped_ptr<AppCacheHost> AppCacheBackendImpl::TransferHostOut(int host_id) {
// We give up ownership.
transferree->PrepareForTransfer();
- return scoped_ptr<AppCacheHost>(transferree);
+ return std::unique_ptr<AppCacheHost>(transferree);
}
-void AppCacheBackendImpl::TransferHostIn(
- int new_host_id, scoped_ptr<AppCacheHost> host) {
+void AppCacheBackendImpl::TransferHostIn(int new_host_id,
+ std::unique_ptr<AppCacheHost> host) {
HostMap::iterator found = hosts_.find(new_host_id);
if (found == hosts_.end()) {
NOTREACHED();
« no previous file with comments | « content/browser/appcache/appcache_backend_impl.h ('k') | content/browser/appcache/appcache_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698