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

Unified Diff: components/password_manager/core/browser/affiliation_fetcher.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/affiliation_fetcher.cc
diff --git a/components/password_manager/core/browser/affiliation_fetcher.cc b/components/password_manager/core/browser/affiliation_fetcher.cc
index b37378b4038cade239adccfc8b3a549cbfdf0fea..cad2e7ad33a8cccd261426d395fdb641a4c3e410 100644
--- a/components/password_manager/core/browser/affiliation_fetcher.cc
+++ b/components/password_manager/core/browser/affiliation_fetcher.cc
@@ -5,6 +5,7 @@
#include "components/password_manager/core/browser/affiliation_fetcher.h"
#include <stddef.h>
+#include <utility>
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
@@ -204,7 +205,7 @@ void AffiliationFetcher::OnURLFetchComplete(const net::URLFetcher* source) {
fetcher_->GetResponseCode() == net::HTTP_OK) {
if (ParseResponse(result_data.get())) {
ReportStatistics(AFFILIATION_FETCH_RESULT_SUCCESS, nullptr);
- delegate_->OnFetchSucceeded(result_data.Pass());
+ delegate_->OnFetchSucceeded(std::move(result_data));
} else {
ReportStatistics(AFFILIATION_FETCH_RESULT_MALFORMED, nullptr);
delegate_->OnMalformedResponse();

Powered by Google App Engine
This is Rietveld 408576698