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

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

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « remoting/host/win/chromoting_module.cc ('k') | remoting/host/win/elevated_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/com_security.h" 5 #include "remoting/host/win/com_security.h"
6 6
7 #include <objidl.h> 7 #include <objidl.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 30 matching lines...) Expand all
41 41
42 DWORD capabilities = EOAC_DYNAMIC_CLOAKING; 42 DWORD capabilities = EOAC_DYNAMIC_CLOAKING;
43 if (!activate_as_activator) 43 if (!activate_as_activator)
44 capabilities |= EOAC_DISABLE_AAA; 44 capabilities |= EOAC_DISABLE_AAA;
45 45
46 // Apply the security descriptor and default security settings. See 46 // Apply the security descriptor and default security settings. See
47 // InitializeComSecurity's declaration for details. 47 // InitializeComSecurity's declaration for details.
48 HRESULT result = CoInitializeSecurity( 48 HRESULT result = CoInitializeSecurity(
49 absolute_sd.get(), 49 absolute_sd.get(),
50 -1, // Let COM choose which authentication services to register. 50 -1, // Let COM choose which authentication services to register.
51 NULL, // See above. 51 nullptr, // See above.
52 NULL, // Reserved, must be NULL. 52 nullptr, // Reserved, must be nullptr.
53 RPC_C_AUTHN_LEVEL_PKT_PRIVACY, 53 RPC_C_AUTHN_LEVEL_PKT_PRIVACY,
54 RPC_C_IMP_LEVEL_IDENTIFY, 54 RPC_C_IMP_LEVEL_IDENTIFY,
55 NULL, // Default authentication information is not provided. 55 nullptr, // Default authentication information is not provided.
56 capabilities, 56 capabilities,
57 NULL); /// Reserved, must be NULL 57 nullptr); /// Reserved, must be nullptr
58 if (FAILED(result)) { 58 if (FAILED(result)) {
59 LOG(ERROR) << "CoInitializeSecurity() failed, result=0x" 59 LOG(ERROR) << "CoInitializeSecurity() failed, result=0x"
60 << std::hex << result << std::dec << "."; 60 << std::hex << result << std::dec << ".";
61 return false; 61 return false;
62 } 62 }
63 63
64 return true; 64 return true;
65 } 65 }
66 66
67 } // namespace remoting 67 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/chromoting_module.cc ('k') | remoting/host/win/elevated_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698