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

Unified Diff: components/signin/core/browser/account_fetcher_service.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/signin/core/browser/account_fetcher_service.cc
diff --git a/components/signin/core/browser/account_fetcher_service.cc b/components/signin/core/browser/account_fetcher_service.cc
index 83808b4c4cced535c4bcecf52b37b0d386253f9d..1902fcc519f42e8b7cd0f970fe517de2f6b60e1f 100644
--- a/components/signin/core/browser/account_fetcher_service.cc
+++ b/components/signin/core/browser/account_fetcher_service.cc
@@ -4,6 +4,8 @@
#include "components/signin/core/browser/account_fetcher_service.h"
+#include <utility>
+
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
#include "base/prefs/pref_service.h"
@@ -204,7 +206,7 @@ void AccountFetcherService::StartFetchingUserInfo(
scoped_ptr<AccountInfoFetcher> fetcher(new AccountInfoFetcher(
token_service_, signin_client_->GetURLRequestContext(), this,
account_id));
- user_info_requests_.set(account_id, fetcher.Pass());
+ user_info_requests_.set(account_id, std::move(fetcher));
user_info_requests_.get(account_id)->Start();
}
}
@@ -269,7 +271,7 @@ void AccountFetcherService::SendRefreshTokenAnnotationRequest(
// If request was sent AccountFetcherService needs to own request till it
// finishes.
if (request)
- refresh_token_annotation_requests_.set(account_id, request.Pass());
+ refresh_token_annotation_requests_.set(account_id, std::move(request));
}
#endif
}
« no previous file with comments | « components/signin/core/browser/about_signin_internals.cc ('k') | components/signin/core/browser/account_info_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698