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

Unified Diff: components/password_manager/core/browser/affiliated_match_helper.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/password_manager/core/browser/affiliated_match_helper.cc
diff --git a/components/password_manager/core/browser/affiliated_match_helper.cc b/components/password_manager/core/browser/affiliated_match_helper.cc
index 3ab4b0eb2639c00d033d7448d947d66e0031fc97..283b7e7be5337fa97caa9dd0968b5faf35c33a2d 100644
--- a/components/password_manager/core/browser/affiliated_match_helper.cc
+++ b/components/password_manager/core/browser/affiliated_match_helper.cc
@@ -4,6 +4,8 @@
#include "components/password_manager/core/browser/affiliated_match_helper.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/single_thread_task_runner.h"
@@ -37,9 +39,8 @@ AffiliatedMatchHelper::AffiliatedMatchHelper(
scoped_ptr<AffiliationService> affiliation_service)
: password_store_(password_store),
task_runner_for_waiting_(base::ThreadTaskRunnerHandle::Get()),
- affiliation_service_(affiliation_service.Pass()),
- weak_ptr_factory_(this) {
-}
+ affiliation_service_(std::move(affiliation_service)),
+ weak_ptr_factory_(this) {}
AffiliatedMatchHelper::~AffiliatedMatchHelper() {
if (password_store_)

Powered by Google App Engine
This is Rietveld 408576698