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

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

Issue 121123002: Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
« no previous file with comments | « remoting/host/verify_config_window_win.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromoting_module.h" 5 #include "remoting/host/win/chromoting_module.h"
6 6
7 #include <sddl.h> 7 #include <sddl.h>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // Elevated controller entry point. 198 // Elevated controller entry point.
199 int ElevatedControllerMain() { 199 int ElevatedControllerMain() {
200 ATL::_ATL_OBJMAP_ENTRY elevated_controller_entry[] = { 200 ATL::_ATL_OBJMAP_ENTRY elevated_controller_entry[] = {
201 OBJECT_ENTRY(__uuidof(ElevatedController), ElevatedController) 201 OBJECT_ENTRY(__uuidof(ElevatedController), ElevatedController)
202 }; 202 };
203 203
204 ChromotingModule module(elevated_controller_entry, 204 ChromotingModule module(elevated_controller_entry,
205 elevated_controller_entry + 1); 205 elevated_controller_entry + 1);
206 206
207 if (!InitializeComSecurity(WideToUTF8(kElevatedControllerSd), "", true)) 207 if (!InitializeComSecurity(base::WideToUTF8(kElevatedControllerSd), "", true))
208 return kInitializationFailed; 208 return kInitializationFailed;
209 209
210 if (!module.Run()) 210 if (!module.Run())
211 return kInitializationFailed; 211 return kInitializationFailed;
212 212
213 return kSuccessExitCode; 213 return kSuccessExitCode;
214 } 214 }
215 215
216 // RdpClient entry point. 216 // RdpClient entry point.
217 int RdpDesktopSessionMain() { 217 int RdpDesktopSessionMain() {
218 // Lower the integrity level to medium, which is the lowest level at which 218 // Lower the integrity level to medium, which is the lowest level at which
219 // the RDP ActiveX control can run. 219 // the RDP ActiveX control can run.
220 if (base::win::GetVersion() >= base::win::VERSION_VISTA) { 220 if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
221 if (!LowerProcessIntegrityLevel(SECURITY_MANDATORY_MEDIUM_RID)) 221 if (!LowerProcessIntegrityLevel(SECURITY_MANDATORY_MEDIUM_RID))
222 return kInitializationFailed; 222 return kInitializationFailed;
223 } 223 }
224 224
225 ATL::_ATL_OBJMAP_ENTRY rdp_client_entry[] = { 225 ATL::_ATL_OBJMAP_ENTRY rdp_client_entry[] = {
226 OBJECT_ENTRY(__uuidof(RdpDesktopSession), RdpDesktopSession) 226 OBJECT_ENTRY(__uuidof(RdpDesktopSession), RdpDesktopSession)
227 }; 227 };
228 228
229 ChromotingModule module(rdp_client_entry, rdp_client_entry + 1); 229 ChromotingModule module(rdp_client_entry, rdp_client_entry + 1);
230 return module.Run() ? kSuccessExitCode : kInitializationFailed; 230 return module.Run() ? kSuccessExitCode : kInitializationFailed;
231 } 231 }
232 232
233 } // namespace remoting 233 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/verify_config_window_win.cc ('k') | remoting/host/win/elevated_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698