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

Unified Diff: chrome/browser/local_discovery/gcd_api_flow_impl.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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
Index: chrome/browser/local_discovery/gcd_api_flow_impl.cc
diff --git a/chrome/browser/local_discovery/gcd_api_flow_impl.cc b/chrome/browser/local_discovery/gcd_api_flow_impl.cc
index 1f3d301be60422bb62169bc40f3926f82d752b79..ddad20130c18e58df941091129e5115bc80e3c07 100644
--- a/chrome/browser/local_discovery/gcd_api_flow_impl.cc
+++ b/chrome/browser/local_discovery/gcd_api_flow_impl.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/local_discovery/gcd_api_flow_impl.h"
#include <stddef.h>
+#include <utility>
#include "base/json/json_reader.h"
#include "base/strings/string_number_conversions.h"
@@ -34,7 +35,7 @@ GCDApiFlowImpl::~GCDApiFlowImpl() {
}
void GCDApiFlowImpl::Start(scoped_ptr<Request> request) {
- request_ = request.Pass();
+ request_ = std::move(request);
OAuth2TokenService::ScopeSet oauth_scopes;
oauth_scopes.insert(request_->GetOAuthScope());
oauth_request_ =

Powered by Google App Engine
This is Rietveld 408576698