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

Unified Diff: components/webdata/common/web_database_backend.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/webdata/common/web_database_backend.cc
diff --git a/components/webdata/common/web_database_backend.cc b/components/webdata/common/web_database_backend.cc
index 2ed1d87030db2258ab7944080edf30c5d897a51a..df09d30f79988396114e21a7cea2bf6e1a8ddcbb 100644
--- a/components/webdata/common/web_database_backend.cc
+++ b/components/webdata/common/web_database_backend.cc
@@ -4,6 +4,8 @@
#include "components/webdata/common/web_database_backend.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "components/webdata/common/web_data_request_manager.h"
@@ -75,7 +77,7 @@ void WebDatabaseBackend::DBWriteTaskWrapper(
return;
ExecuteWriteTask(task);
- request_manager_->RequestCompleted(request.Pass());
+ request_manager_->RequestCompleted(std::move(request));
}
void WebDatabaseBackend::ExecuteWriteTask(
@@ -94,8 +96,8 @@ void WebDatabaseBackend::DBReadTaskWrapper(
if (request->IsCancelled())
return;
- request->SetResult(ExecuteReadTask(task).Pass());
- request_manager_->RequestCompleted(request.Pass());
+ request->SetResult(ExecuteReadTask(task));
+ request_manager_->RequestCompleted(std::move(request));
}
scoped_ptr<WDTypedResult> WebDatabaseBackend::ExecuteReadTask(
« no previous file with comments | « components/webdata/common/web_data_request_manager.cc ('k') | components/webdata/common/web_database_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698