Index: remoting/host/win/security_descriptor.cc |
diff --git a/remoting/host/win/security_descriptor.cc b/remoting/host/win/security_descriptor.cc |
index 886fae9276a1ff5f4e092321e576b61ff7b5b781..1187f117e3ce1626088f179870dbfd1f7188d05f 100644 |
--- a/remoting/host/win/security_descriptor.cc |
+++ b/remoting/host/win/security_descriptor.cc |
@@ -23,7 +23,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. |
@@ -58,7 +58,7 @@ ScopedSid GetLogonSid(HANDLE token) { |
if (!CopySid(length, logon_sid.get(), groups->Groups[i].Sid)) |
return ScopedSid(); |
- return logon_sid.Pass(); |
+ return logon_sid; |
} |
} |