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

Unified Diff: remoting/host/win/security_descriptor.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/win/launch_process_with_token.cc ('k') | remoting/host/win/session_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/security_descriptor.cc
diff --git a/remoting/host/win/security_descriptor.cc b/remoting/host/win/security_descriptor.cc
index fffefe5b73ace5868829cadb19bcc3d9c050fb3f..c316ff7f18526e22fdb1abe521e4345a8eda8ac1 100644
--- a/remoting/host/win/security_descriptor.cc
+++ b/remoting/host/win/security_descriptor.cc
@@ -24,7 +24,7 @@ ScopedSd ConvertSddlToSd(const std::string& sddl) {
memcpy(sd.get(), raw_sd, length);
LocalFree(raw_sd);
- return sd.Pass();
+ return sd;
}
// Converts a SID into a text string.
@@ -59,7 +59,7 @@ ScopedSid GetLogonSid(HANDLE token) {
if (!CopySid(length, logon_sid.get(), groups->Groups[i].Sid))
return ScopedSid();
- return logon_sid.Pass();
+ return logon_sid;
}
}
« no previous file with comments | « remoting/host/win/launch_process_with_token.cc ('k') | remoting/host/win/session_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698