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

Unified Diff: remoting/host/oauth_token_getter_impl.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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: remoting/host/oauth_token_getter_impl.cc
diff --git a/remoting/host/oauth_token_getter_impl.cc b/remoting/host/oauth_token_getter_impl.cc
index 3d08f035c08d51644462ce2758dddad4a6a10b49..1dd35aa4f5d0dd735f861d217dae9911f2f3313d 100644
--- a/remoting/host/oauth_token_getter_impl.cc
+++ b/remoting/host/oauth_token_getter_impl.cc
@@ -4,6 +4,8 @@
#include "remoting/host/oauth_token_getter_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/strings/string_util.h"
@@ -28,7 +30,7 @@ OAuthTokenGetterImpl::OAuthTokenGetterImpl(
const scoped_refptr<net::URLRequestContextGetter>&
url_request_context_getter,
bool auto_refresh)
- : oauth_credentials_(oauth_credentials.Pass()),
+ : oauth_credentials_(std::move(oauth_credentials)),
gaia_oauth_client_(
new gaia::GaiaOAuthClient(url_request_context_getter.get())),
url_request_context_getter_(url_request_context_getter) {
@@ -37,8 +39,7 @@ OAuthTokenGetterImpl::OAuthTokenGetterImpl(
}
}
-OAuthTokenGetterImpl::~OAuthTokenGetterImpl() {
-}
+OAuthTokenGetterImpl::~OAuthTokenGetterImpl() {}
void OAuthTokenGetterImpl::OnGetTokensResponse(const std::string& user_email,
const std::string& access_token,
« no previous file with comments | « remoting/host/native_messaging/pipe_messaging_channel.cc ('k') | remoting/host/pairing_registry_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698