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

Unified Diff: content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.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_blob_to_disk_cache_unittest.cc
diff --git a/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc b/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
index b4e88a8c89140eeba6685c610edb1b0585f65dcd..28e6c0c18b4d29d90ae2c92bd74f54a823f73721 100644
--- a/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
+++ b/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
@@ -5,6 +5,7 @@
#include "content/browser/cache_storage/cache_storage_blob_to_disk_cache.h"
#include <string>
+#include <utility>
#include "base/files/file_path.h"
#include "base/macros.h"
@@ -170,8 +171,8 @@ class CacheStorageBlobToDiskCacheTest : public testing::Test {
blob_storage_context_->GetBlobDataFromUUID(blob_handle_->uuid()));
cache_storage_blob_to_disk_cache_->StreamBlobToCache(
- disk_cache_entry_.Pass(), kCacheEntryIndex, url_request_context_getter_,
- new_data_handle.Pass(),
+ std::move(disk_cache_entry_), kCacheEntryIndex,
+ url_request_context_getter_, std::move(new_data_handle),
base::Bind(&CacheStorageBlobToDiskCacheTest::StreamCallback,
base::Unretained(this)));
@@ -181,7 +182,7 @@ class CacheStorageBlobToDiskCacheTest : public testing::Test {
}
void StreamCallback(disk_cache::ScopedEntryPtr entry_ptr, bool success) {
- disk_cache_entry_ = entry_ptr.Pass();
+ disk_cache_entry_ = std::move(entry_ptr);
callback_success_ = success;
callback_called_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698