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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store_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/indexed_db/indexed_db_backing_store_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
index ce04dede8950acdb8bbd44855f304f305409c843..93d281e036aa0b47cf68acab5f6264fc97915fcc 100644
--- a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/callback.h"
#include "base/files/file_util.h"
@@ -92,13 +93,9 @@ class TestableIndexedDBBackingStore : public IndexedDBBackingStore {
return scoped_refptr<TestableIndexedDBBackingStore>();
scoped_refptr<TestableIndexedDBBackingStore> backing_store(
- new TestableIndexedDBBackingStore(indexed_db_factory,
- origin_url,
- blob_path,
- request_context,
- db.Pass(),
- comparator.Pass(),
- task_runner));
+ new TestableIndexedDBBackingStore(
+ indexed_db_factory, origin_url, blob_path, request_context,
+ std::move(db), std::move(comparator), task_runner));
*status = backing_store->SetUpMetadata();
if (!status->ok())
@@ -165,8 +162,8 @@ class TestableIndexedDBBackingStore : public IndexedDBBackingStore {
origin_url,
blob_path,
request_context,
- db.Pass(),
- comparator.Pass(),
+ std::move(db),
+ std::move(comparator),
task_runner),
database_id_(0) {}
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698