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

Unified Diff: sync/internal_api/attachments/on_disk_attachment_store_unittest.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up 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: sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
diff --git a/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc b/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
index 09142e5f2c3f38fc66fdaf383b9acf29086460be..e195869f1453384d079037c5352def6da9967b26 100644
--- a/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
+++ b/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
@@ -5,8 +5,8 @@
#include "sync/internal_api/public/attachments/on_disk_attachment_store.h"
#include <stdint.h>
-
#include <string>
+#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
@@ -99,7 +99,7 @@ class OnDiskAttachmentStoreSpecificTest : public testing::Test {
const AttachmentStore::Result& source_result,
scoped_ptr<AttachmentMetadataList> source_metadata) {
CopyResult(destination_result, source_result);
- *destination_metadata = source_metadata.Pass();
+ *destination_metadata = std::move(source_metadata);
}
scoped_ptr<leveldb::DB> OpenLevelDB() {
« no previous file with comments | « sync/internal_api/attachments/on_disk_attachment_store.cc ('k') | sync/internal_api/attachments/task_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698