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

Unified Diff: components/signin/core/browser/refresh_token_annotation_request.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/refresh_token_annotation_request.cc
diff --git a/components/signin/core/browser/refresh_token_annotation_request.cc b/components/signin/core/browser/refresh_token_annotation_request.cc
index 82b06f2da92c30cd474bee7f66871700637e0039..c36874ad49b28db8452b02f865f4fd89881df936 100644
--- a/components/signin/core/browser/refresh_token_annotation_request.cc
+++ b/components/signin/core/browser/refresh_token_annotation_request.cc
@@ -56,18 +56,18 @@ RefreshTokenAnnotationRequest::SendIfNeeded(
scoped_ptr<RefreshTokenAnnotationRequest> request;
if (!ShouldSendNow(pref_service))
- return request.Pass();
+ return request;
// Don't send request if device_id is disabled.
std::string device_id = signin_client->GetSigninScopedDeviceId();
if (device_id.empty())
- return request.Pass();
+ return request;
request.reset(new RefreshTokenAnnotationRequest(
request_context_getter, signin_client->GetProductVersion(), device_id,
GaiaUrls::GetInstance()->oauth2_chrome_client_id(), request_callback));
request->RequestAccessToken(token_service, account_id);
- return request.Pass();
+ return request;
}
// static

Powered by Google App Engine
This is Rietveld 408576698