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

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

Issue 2568983004: Fixing CRD curtain mode connection failures on Win8+ official builds (Closed)
Patch Set: Addressing CR Feedback Created 4 years 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 | « no previous file | remoting/host/win/BUILD.gn » ('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 #include "remoting/host/desktop_session_win.h" 5 #include "remoting/host/desktop_session_win.h"
6 6
7 #include <sddl.h> 7 #include <sddl.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 TerminateSession(); 611 TerminateSession();
612 } 612 }
613 613
614 void DesktopSessionWin::OnSessionAttached(uint32_t session_id) { 614 void DesktopSessionWin::OnSessionAttached(uint32_t session_id) {
615 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 615 DCHECK(caller_task_runner_->BelongsToCurrentThread());
616 DCHECK(!launcher_); 616 DCHECK(!launcher_);
617 DCHECK(monitoring_notifications_); 617 DCHECK(monitoring_notifications_);
618 618
619 ReportElapsedTime("attached"); 619 ReportElapsedTime("attached");
620 620
621 // Launch elevated on Win8 to be able to inject Alt+Tab. 621 // Launch elevated on Win8+ to enable injection of Alt+Tab and Ctrl+Alt+Del.
622 bool launch_elevated = base::win::GetVersion() >= base::win::VERSION_WIN8; 622 bool launch_elevated = base::win::GetVersion() >= base::win::VERSION_WIN8;
623 623
624 // Get the name of the executable to run. |kDesktopBinaryName| specifies 624 // Get the name of the executable to run. |kDesktopBinaryName| specifies
625 // uiAccess="true" in it's manifest. 625 // uiAccess="true" in its manifest.
626 base::FilePath desktop_binary; 626 base::FilePath desktop_binary;
627 bool result; 627 bool result;
628 if (launch_elevated) { 628 if (launch_elevated) {
629 result = GetInstalledBinaryPath(kDesktopBinaryName, &desktop_binary); 629 result = GetInstalledBinaryPath(kDesktopBinaryName, &desktop_binary);
630 } else { 630 } else {
631 result = GetInstalledBinaryPath(kHostBinaryName, &desktop_binary); 631 result = GetInstalledBinaryPath(kHostBinaryName, &desktop_binary);
632 } 632 }
633 633
634 if (!result) { 634 if (!result) {
635 TerminateSession(); 635 TerminateSession();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 exploded.hour, 708 exploded.hour,
709 exploded.minute, 709 exploded.minute,
710 exploded.second, 710 exploded.second,
711 exploded.millisecond, 711 exploded.millisecond,
712 passed.c_str()); 712 passed.c_str());
713 713
714 last_timestamp_ = now; 714 last_timestamp_ = now;
715 } 715 }
716 716
717 } // namespace remoting 717 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/host/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698