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

Unified Diff: content/browser/cache_storage/cache_storage_manager.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: content/browser/cache_storage/cache_storage_manager.cc
diff --git a/content/browser/cache_storage/cache_storage_manager.cc b/content/browser/cache_storage/cache_storage_manager.cc
index 4b55bd4aff9b80923cd27e29e4266fffd62734b1..cd02deb0a0f260913dc2b1993c3006b972121f59 100644
--- a/content/browser/cache_storage/cache_storage_manager.cc
+++ b/content/browser/cache_storage/cache_storage_manager.cc
@@ -5,9 +5,9 @@
#include "content/browser/cache_storage/cache_storage_manager.h"
#include <stdint.h>
-
#include <map>
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_enumerator.h"
@@ -125,7 +125,7 @@ scoped_ptr<CacheStorageManager> CacheStorageManager::Create(
// the dispatcher host per usual.
manager->SetBlobParametersForCache(old_manager->url_request_context_getter(),
old_manager->blob_storage_context());
- return manager.Pass();
+ return manager;
}
CacheStorageManager::~CacheStorageManager() = default;
@@ -178,7 +178,7 @@ void CacheStorageManager::MatchCache(
const CacheStorageCache::ResponseCallback& callback) {
CacheStorage* cache_storage = FindOrCreateCacheStorage(origin);
- cache_storage->MatchCache(cache_name, request.Pass(), callback);
+ cache_storage->MatchCache(cache_name, std::move(request), callback);
}
void CacheStorageManager::MatchAllCaches(
@@ -187,7 +187,7 @@ void CacheStorageManager::MatchAllCaches(
const CacheStorageCache::ResponseCallback& callback) {
CacheStorage* cache_storage = FindOrCreateCacheStorage(origin);
- cache_storage->MatchAllCaches(request.Pass(), callback);
+ cache_storage->MatchAllCaches(std::move(request), callback);
}
void CacheStorageManager::SetBlobParametersForCache(

Powered by Google App Engine
This is Rietveld 408576698