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

Unified Diff: chrome/browser/sync_file_system/local/canned_syncable_file_system.cc

Issue 1545283002: Convert Pass()→std::move() in //chrome/browser/ui (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: chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
diff --git a/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc b/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
index efe11073e423fc1d02f8d97040d5260a39daf8fc..309a53a2418c17ccef3a2c63d6e16240a2f9dfa1 100644
--- a/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
+++ b/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/sync_file_system/local/canned_syncable_file_system.h"
#include <stddef.h>
-
#include <algorithm>
#include <iterator>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -258,14 +258,12 @@ void CannedSyncableFileSystem::SetUp(QuotaMode quota_mode) {
additional_backends.push_back(SyncFileSystemBackend::CreateForTesting());
file_system_context_ = new FileSystemContext(
- io_task_runner_.get(),
- file_task_runner_.get(),
+ io_task_runner_.get(), file_task_runner_.get(),
storage::ExternalMountPoints::CreateRefCounted().get(),
storage_policy.get(),
quota_manager_.get() ? quota_manager_->proxy() : nullptr,
- additional_backends.Pass(),
- std::vector<storage::URLRequestAutoMountHandler>(),
- data_dir_.path(),
+ std::move(additional_backends),
+ std::vector<storage::URLRequestAutoMountHandler>(), data_dir_.path(),
options);
is_filesystem_set_up_ = true;
@@ -692,10 +690,9 @@ void CannedSyncableFileSystem::DoWrite(
EXPECT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
EXPECT_TRUE(is_filesystem_opened_);
WriteHelper* helper = new WriteHelper;
- operation_runner()->Write(url_request_context, url,
- blob_data_handle.Pass(), 0,
- base::Bind(&WriteHelper::DidWrite,
- base::Owned(helper), callback));
+ operation_runner()->Write(
+ url_request_context, url, std::move(blob_data_handle), 0,
+ base::Bind(&WriteHelper::DidWrite, base::Owned(helper), callback));
}
void CannedSyncableFileSystem::DoWriteString(

Powered by Google App Engine
This is Rietveld 408576698