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

Side by Side Diff: remoting/host/desktop_process_main.cc

Issue 1930473003: Adding support for Win+L key combo in Windows host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback Created 4 years, 7 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/desktop_process.cc ('k') | remoting/host/win/session_desktop_environment.h » ('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) 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 // This file implements the Windows service controlling Me2Me host processes 5 // This file implements the Windows service controlling Me2Me host processes
6 // running within user sessions. 6 // running within user sessions.
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 DesktopProcess desktop_process(ui_task_runner, 52 DesktopProcess desktop_process(ui_task_runner,
53 input_task_runner, 53 input_task_runner,
54 channel_name); 54 channel_name);
55 55
56 // Create a platform-dependent environment factory. 56 // Create a platform-dependent environment factory.
57 std::unique_ptr<DesktopEnvironmentFactory> desktop_environment_factory; 57 std::unique_ptr<DesktopEnvironmentFactory> desktop_environment_factory;
58 #if defined(OS_WIN) 58 #if defined(OS_WIN)
59 desktop_environment_factory.reset(new SessionDesktopEnvironmentFactory( 59 desktop_environment_factory.reset(new SessionDesktopEnvironmentFactory(
60 ui_task_runner, video_capture_task_runner, input_task_runner, 60 ui_task_runner, video_capture_task_runner, input_task_runner,
61 ui_task_runner, 61 ui_task_runner,
62 base::Bind(&DesktopProcess::InjectSas, desktop_process.AsWeakPtr()))); 62 base::Bind(&DesktopProcess::InjectSas, desktop_process.AsWeakPtr()),
63 base::Bind(&DesktopProcess::LockWorkStation,
64 desktop_process.AsWeakPtr())));
63 #else // !defined(OS_WIN) 65 #else // !defined(OS_WIN)
64 desktop_environment_factory.reset(new Me2MeDesktopEnvironmentFactory( 66 desktop_environment_factory.reset(new Me2MeDesktopEnvironmentFactory(
65 ui_task_runner, video_capture_task_runner, input_task_runner, 67 ui_task_runner, video_capture_task_runner, input_task_runner,
66 ui_task_runner)); 68 ui_task_runner));
67 #endif // !defined(OS_WIN) 69 #endif // !defined(OS_WIN)
68 70
69 if (!desktop_process.Start(std::move(desktop_environment_factory))) 71 if (!desktop_process.Start(std::move(desktop_environment_factory)))
70 return kInitializationFailed; 72 return kInitializationFailed;
71 73
72 // Run the UI message loop. 74 // Run the UI message loop.
73 ui_task_runner = nullptr; 75 ui_task_runner = nullptr;
74 run_loop.Run(); 76 run_loop.Run();
75 77
76 return kSuccessExitCode; 78 return kSuccessExitCode;
77 } 79 }
78 80
79 } // namespace remoting 81 } // namespace remoting
80 82
81 #if !defined(OS_WIN) 83 #if !defined(OS_WIN)
82 int main(int argc, char** argv) { 84 int main(int argc, char** argv) {
83 return remoting::HostMain(argc, argv); 85 return remoting::HostMain(argc, argv);
84 } 86 }
85 #endif // !defined(OS_WIN) 87 #endif // !defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/desktop_process.cc ('k') | remoting/host/win/session_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698