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

Unified Diff: content/browser/fileapi/chrome_blob_storage_context.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/fileapi/chrome_blob_storage_context.cc
diff --git a/content/browser/fileapi/chrome_blob_storage_context.cc b/content/browser/fileapi/chrome_blob_storage_context.cc
index 5e2c4c83d1defc227d18f01ec8ac48456abdf40f..8b9ed7180985f7db9cb09e75913c1e622409dac2 100644
--- a/content/browser/fileapi/chrome_blob_storage_context.cc
+++ b/content/browser/fileapi/chrome_blob_storage_context.cc
@@ -4,6 +4,8 @@
#include "content/browser/fileapi/chrome_blob_storage_context.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/guid.h"
#include "content/public/browser/blob_handle.h"
@@ -25,7 +27,7 @@ const char kBlobStorageContextKeyName[] = "content_blob_storage_context";
class BlobHandleImpl : public BlobHandle {
public:
explicit BlobHandleImpl(scoped_ptr<storage::BlobDataHandle> handle)
- : handle_(handle.Pass()) {}
+ : handle_(std::move(handle)) {}
~BlobHandleImpl() override {}
@@ -78,8 +80,8 @@ scoped_ptr<BlobHandle> ChromeBlobStorageContext::CreateMemoryBackedBlob(
return scoped_ptr<BlobHandle>();
scoped_ptr<BlobHandle> blob_handle(
- new BlobHandleImpl(blob_data_handle.Pass()));
- return blob_handle.Pass();
+ new BlobHandleImpl(std::move(blob_data_handle)));
+ return blob_handle;
}
scoped_ptr<BlobHandle> ChromeBlobStorageContext::CreateFileBackedBlob(
@@ -99,8 +101,8 @@ scoped_ptr<BlobHandle> ChromeBlobStorageContext::CreateFileBackedBlob(
return scoped_ptr<BlobHandle>();
scoped_ptr<BlobHandle> blob_handle(
- new BlobHandleImpl(blob_data_handle.Pass()));
- return blob_handle.Pass();
+ new BlobHandleImpl(std::move(blob_data_handle)));
+ return blob_handle;
}
ChromeBlobStorageContext::~ChromeBlobStorageContext() {}
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.cc ('k') | content/browser/fileapi/copy_or_move_file_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698