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

Unified Diff: google_apis/gaia/oauth2_token_service.cc

Issue 1547233002: Convert Pass()→std::move() in //google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « google_apis/gaia/gaia_oauth_client.cc ('k') | google_apis/gaia/oauth2_token_service_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/oauth2_token_service.cc
diff --git a/google_apis/gaia/oauth2_token_service.cc b/google_apis/gaia/oauth2_token_service.cc
index 72885a43f50bd14be3d3fb63fd0ba409f392b959..ed20d1356249bc0dd14b5b2ab91441024626d558 100644
--- a/google_apis/gaia/oauth2_token_service.cc
+++ b/google_apis/gaia/oauth2_token_service.cc
@@ -5,7 +5,7 @@
#include "google_apis/gaia/oauth2_token_service.h"
#include <stdint.h>
-
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -507,7 +507,7 @@ OAuth2TokenService::StartRequestForClientWithContext(
error,
std::string(),
base::Time()));
- return request.Pass();
+ return std::move(request);
}
RequestParameters request_parameters(client_id,
@@ -529,7 +529,7 @@ OAuth2TokenService::StartRequestForClientWithContext(
client_secret,
scopes);
}
- return request.Pass();
+ return std::move(request);
}
void OAuth2TokenService::FetchOAuth2Token(RequestImpl* request,
« no previous file with comments | « google_apis/gaia/gaia_oauth_client.cc ('k') | google_apis/gaia/oauth2_token_service_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698