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

Side by Side Diff: remoting/host/win/security_descriptor.cc

Issue 16181013: Use a direct include of strings headers in remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/win/security_descriptor.h" 5 #include "remoting/host/win/security_descriptor.h"
6 6
7 #include <sddl.h> 7 #include <sddl.h>
8 8
9 #include "base/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 ScopedSd ConvertSddlToSd(const std::string& sddl) { 14 ScopedSd ConvertSddlToSd(const std::string& sddl) {
15 PSECURITY_DESCRIPTOR raw_sd = NULL; 15 PSECURITY_DESCRIPTOR raw_sd = NULL;
16 ULONG length = 0; 16 ULONG length = 0;
17 if (!ConvertStringSecurityDescriptorToSecurityDescriptor( 17 if (!ConvertStringSecurityDescriptorToSecurityDescriptor(
18 UTF8ToUTF16(sddl).c_str(), SDDL_REVISION_1, &raw_sd, &length)) { 18 UTF8ToUTF16(sddl).c_str(), SDDL_REVISION_1, &raw_sd, &length)) {
19 return ScopedSd(); 19 return ScopedSd();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 absolute_sd->Swap(local_absolute_sd); 117 absolute_sd->Swap(local_absolute_sd);
118 dacl->Swap(local_dacl); 118 dacl->Swap(local_dacl);
119 group->Swap(local_group); 119 group->Swap(local_group);
120 owner->Swap(local_owner); 120 owner->Swap(local_owner);
121 sacl->Swap(local_sacl); 121 sacl->Swap(local_sacl);
122 return true; 122 return true;
123 } 123 }
124 124
125 } // namespace remoting 125 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/rdp_client_window.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698