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

Unified Diff: remoting/host/gcd_rest_client.h

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: 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/gcd_rest_client.h
diff --git a/remoting/host/gcd_rest_client.h b/remoting/host/gcd_rest_client.h
index e83b1fd19037b2759e20e40bccfcdfee15be781f..b59909ad45e592ff34b01d1e0c867595007a38ef 100644
--- a/remoting/host/gcd_rest_client.h
+++ b/remoting/host/gcd_rest_client.h
@@ -53,7 +53,9 @@ class GcdRestClient : public net::URLFetcherDelegate {
void PatchState(scoped_ptr<base::DictionaryValue> patch_details,
const GcdRestClient::ResultCallback& callback);
- void SetClockForTest(scoped_ptr<base::Clock> clock) { clock_ = clock.Pass(); }
+ void SetClockForTest(scoped_ptr<base::Clock> clock) {
+ clock_ = std::move(clock);
+ }
private:
void OnTokenReceived(OAuthTokenGetter::Status status,

Powered by Google App Engine
This is Rietveld 408576698