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

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

Issue 2037163002: Removing WinXP and Vista specific code from Chromoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sas_be_gone
Patch Set: Addressing feedback Created 4 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
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 "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/win/scoped_handle.h" 12 #include "base/win/scoped_handle.h"
13 #include "base/win/windows_version.h"
14 #include "remoting/base/auto_thread_task_runner.h" 13 #include "remoting/base/auto_thread_task_runner.h"
15 #include "remoting/base/typed_buffer.h" 14 #include "remoting/base/typed_buffer.h"
16 #include "remoting/host/host_exit_codes.h" 15 #include "remoting/host/host_exit_codes.h"
17 #include "remoting/host/win/rdp_desktop_session.h" 16 #include "remoting/host/win/rdp_desktop_session.h"
18 17
19 namespace remoting { 18 namespace remoting {
20 19
21 namespace { 20 namespace {
22 21
23 // Holds a reference to the task runner used by the module. 22 // Holds a reference to the task runner used by the module.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return result; 176 return result;
178 } 177 }
179 178
180 return S_OK; 179 return S_OK;
181 } 180 }
182 181
183 // RdpClient entry point. 182 // RdpClient entry point.
184 int RdpDesktopSessionMain() { 183 int RdpDesktopSessionMain() {
185 // Lower the integrity level to medium, which is the lowest level at which 184 // Lower the integrity level to medium, which is the lowest level at which
186 // the RDP ActiveX control can run. 185 // the RDP ActiveX control can run.
187 if (base::win::GetVersion() >= base::win::VERSION_VISTA) { 186 if (!LowerProcessIntegrityLevel(SECURITY_MANDATORY_MEDIUM_RID)) {
188 if (!LowerProcessIntegrityLevel(SECURITY_MANDATORY_MEDIUM_RID)) 187 return kInitializationFailed;
189 return kInitializationFailed;
190 } 188 }
191 189
192 ATL::_ATL_OBJMAP_ENTRY rdp_client_entry[] = { 190 ATL::_ATL_OBJMAP_ENTRY rdp_client_entry[] = {
193 OBJECT_ENTRY(__uuidof(RdpDesktopSession), RdpDesktopSession) 191 OBJECT_ENTRY(__uuidof(RdpDesktopSession), RdpDesktopSession)
194 }; 192 };
195 193
196 ChromotingModule module(rdp_client_entry, rdp_client_entry + 1); 194 ChromotingModule module(rdp_client_entry, rdp_client_entry + 1);
197 return module.Run() ? kSuccessExitCode : kInitializationFailed; 195 return module.Run() ? kSuccessExitCode : kInitializationFailed;
198 } 196 }
199 197
200 } // namespace remoting 198 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_main.cc ('k') | remoting/host/win/com_security.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698