Index: remoting/host/BUILD.gn |
diff --git a/remoting/host/BUILD.gn b/remoting/host/BUILD.gn |
index cbe014ed2f3de0b7d4971460c872c81376bbeb11..934571db896679ab15e228b9e8eca821eb2f63e1 100644 |
--- a/remoting/host/BUILD.gn |
+++ b/remoting/host/BUILD.gn |
@@ -31,8 +31,11 @@ if (is_win) { |
# Reference this manifest to indicate that a process is per-monitor DPI aware. |
dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" |
-# Depending on this target gives a default executable manifest with the addition |
-# of the DPI aware tag. |
+# Reference this manifest to give the binary the uiAccess privilege. |
+enable_uiaccess_manifest = "//remoting/host/win/enable_uiaccess.manifest" |
+ |
+# Depending on this target gives the executable a default manifest with the |
+# addition of the DPI aware tag. |
windows_manifest("dpi_aware_exe_manifest") { |
sources = [ |
as_invoker_manifest, |
@@ -43,8 +46,9 @@ windows_manifest("dpi_aware_exe_manifest") { |
type = "exe" |
} |
-# Depending on this target gives a default executable manifest with the addition |
-# of the DPI aware tag and a requestedExecutionLevel of requireAdministrator. |
+# Depending on this target gives the executable a default manifest with the |
+# addition of the DPI aware tag and requestedExecutionLevel of |
+# requireAdministrator. |
windows_manifest("dpi_aware_elevated_exe_manifest") { |
sources = [ |
common_controls_manifest, |
@@ -55,6 +59,18 @@ windows_manifest("dpi_aware_elevated_exe_manifest") { |
type = "exe" |
} |
+# Depending on this target gives the executable a default manifest with the |
+# addition of the DPI aware tag and enables uiAccess. |
+windows_manifest("dpi_aware_uiaccess_exe_manifest") { |
+ sources = [ |
+ common_controls_manifest, |
+ default_compatibility_manifest, |
+ dpi_aware_manifest, |
+ enable_uiaccess_manifest, |
+ ] |
+ type = "exe" |
+} |
+ |
# GYP version: remoting/remoting_host:remoting_host_credits |
action("credits") { |
# We put this in $root_build_dir/gen/remoting instead of |
@@ -1559,6 +1575,7 @@ if (enable_me2me_host) { |
":remoting_native_messaging_manifests", |
":remoting_start_host", |
"it2me:remote_assistance_host", |
+ "it2me:remote_assistance_host_uiaccess", |
"//third_party/icu:icudata", |
] |
@@ -1586,6 +1603,7 @@ if (enable_me2me_host) { |
# addressed. |
inputs = [ |
"$root_out_dir/remote_assistance_host.exe", |
+ "$root_out_dir/remote_assistance_host_uiaccess.exe", |
"$root_out_dir/remote_security_key.exe", |
"$root_out_dir/remoting_core.dll", |
"$root_out_dir/remoting_desktop.exe", |
@@ -1605,6 +1623,7 @@ if (enable_me2me_host) { |
# _generated_files, otherwise the Windows MSI will not be built correctly. |
_generated_dst_files = [ |
"files/remote_assistance_host.exe", |
+ "files/remote_assistance_host_uiaccess.exe", |
"files/remote_security_key.exe", |
"files/remoting_core.dll", |
"files/remoting_desktop.exe", |