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

Unified Diff: remoting/host/win/launch_native_messaging_host_process.cc

Issue 2179353004: Update Windows It2Me to allow remote users to interact with elevated windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@it2me_uiaccess
Patch Set: Removing the CHECK assertion and replacing it with LOG(ERROR) instead. Created 4 years, 3 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/elevation_helpers.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/launch_native_messaging_host_process.cc
diff --git a/remoting/host/win/launch_native_messaging_host_process.cc b/remoting/host/win/launch_native_messaging_host_process.cc
index 9379e3ba8c3cd527bd77301bca4cd4245c10b45d..b6b4eae5eef4dea3df3e354959bde82edcf2b23b 100644
--- a/remoting/host/win/launch_native_messaging_host_process.cc
+++ b/remoting/host/win/launch_native_messaging_host_process.cc
@@ -12,6 +12,7 @@
#include "base/command_line.h"
#include "base/files/file_path.h"
+#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/strings/stringprintf.h"
@@ -67,6 +68,11 @@ ProcessLaunchResult LaunchNativeMessagingHostProcess(
DCHECK(read_handle);
DCHECK(write_handle);
+ if (!base::PathExists(binary_path)) {
+ LOG(ERROR) << "Cannot find binary: " << binary_path.value();
+ return PROCESS_LAUNCH_RESULT_FAILED;
+ }
+
// presubmit: allow wstring
std::wstring user_sid;
if (!base::win::GetUserSidString(&user_sid)) {
« no previous file with comments | « remoting/host/win/elevation_helpers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698