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

Unified Diff: remoting/host/win/session_input_injector.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/win/launch_process_with_token.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/session_input_injector.cc
diff --git a/remoting/host/win/session_input_injector.cc b/remoting/host/win/session_input_injector.cc
index 0acccbe49d28ecca301613f8deb3617b3c8c187f..7b61dc51508202c0b1817ea6547374daeab5241d 100644
--- a/remoting/host/win/session_input_injector.cc
+++ b/remoting/host/win/session_input_injector.cc
@@ -16,7 +16,6 @@
#include "base/location.h"
#include "base/macros.h"
#include "base/single_thread_task_runner.h"
-#include "base/win/windows_version.h"
#include "remoting/host/sas_injector.h"
#include "remoting/proto/event.pb.h"
#include "third_party/webrtc/modules/desktop_capture/win/desktop.h"
@@ -89,7 +88,7 @@ class SessionInputInjectorWin::Core
webrtc::ScopedThreadDesktop desktop_;
- // Used to inject Secure Attention Sequence on Vista+.
+ // Used to inject Secure Attention Sequence.
base::Closure inject_sas_;
// Used to lock the current session on non-home SKUs of Windows.
@@ -156,15 +155,7 @@ void SessionInputInjectorWin::Core::InjectKeyEvent(const KeyEvent& event) {
if (dom_code == ui::DomCode::DEL &&
CheckCtrlAndAltArePressed(pressed_keys_)) {
VLOG(3) << "Sending Secure Attention Sequence to the session";
-
- if (base::win::GetVersion() < base::win::VERSION_VISTA) {
- if (!sas_injector_)
- sas_injector_ = SasInjector::Create();
- if (!sas_injector_->InjectSas())
- LOG(ERROR) << "Failed to inject Secure Attention Sequence.";
- } else {
- execute_action_task_runner_->PostTask(FROM_HERE, inject_sas_);
- }
+ execute_action_task_runner_->PostTask(FROM_HERE, inject_sas_);
} else if (dom_code == ui::DomCode::US_L &&
IsWinKeyPressed(pressed_keys_)) {
execute_action_task_runner_->PostTask(FROM_HERE, lock_workstation_);
« no previous file with comments | « remoting/host/win/launch_process_with_token.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698