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

Unified Diff: remoting/host/pairing_registry_delegate_win.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
« no previous file with comments | « remoting/host/pairing_registry_delegate_linux.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate_win.cc
diff --git a/remoting/host/pairing_registry_delegate_win.cc b/remoting/host/pairing_registry_delegate_win.cc
index 90b04ba771b21076f04ae6b484e6386cb149acc1..d65014e5674ecc00247adf057e5ec9b1d09199fb 100644
--- a/remoting/host/pairing_registry_delegate_win.cc
+++ b/remoting/host/pairing_registry_delegate_win.cc
@@ -4,6 +4,8 @@
#include "remoting/host/pairing_registry_delegate_win.h"
+#include <utility>
+
#include "base/json/json_string_value_serializer.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
@@ -139,7 +141,7 @@ scoped_ptr<base::ListValue> PairingRegistryDelegateWin::LoadAll() {
pairings->Append(pairing.ToValue().release());
}
- return pairings.Pass();
+ return pairings;
}
bool PairingRegistryDelegateWin::DeleteAll() {
@@ -223,8 +225,8 @@ bool PairingRegistryDelegateWin::Save(const PairingRegistry::Pairing& pairing) {
std::wstring value_name = base::UTF8ToWide(pairing.client_id());
// Write pairing to the registry.
- if (!WriteValue(privileged_, value_name.c_str(), secret_json.Pass()) ||
- !WriteValue(unprivileged_, value_name.c_str(), pairing_json.Pass())) {
+ if (!WriteValue(privileged_, value_name.c_str(), std::move(secret_json)) ||
+ !WriteValue(unprivileged_, value_name.c_str(), std::move(pairing_json))) {
return false;
}
« no previous file with comments | « remoting/host/pairing_registry_delegate_linux.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698