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

Unified Diff: remoting/host/setup/start_host_main.cc

Issue 2961333002: Fix field trials not working in utility processes. (Closed)
Patch Set: review comment Created 3 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
Index: remoting/host/setup/start_host_main.cc
diff --git a/remoting/host/setup/start_host_main.cc b/remoting/host/setup/start_host_main.cc
index df74f6d149654b38d3b9e7f81214c47035de19c5..0fa66f883902c3ad7f3498fa62aa6c1abffc8f09 100644
--- a/remoting/host/setup/start_host_main.cc
+++ b/remoting/host/setup/start_host_main.cc
@@ -31,7 +31,7 @@
#endif // defined(OS_POSIX)
#if defined(OS_WIN)
-#include "remoting/host/win/elevation_helpers.h"
+#include "base/process/process_info.h"
#endif // defined(OS_WIN)
namespace remoting {
@@ -151,7 +151,7 @@ int StartHostMain(int argc, char** argv) {
#if defined(OS_WIN)
// The tool must be run elevated on Windows so the host has access to the
// directories used to store the configuration JSON files.
- if (!remoting::IsProcessElevated()) {
+ if (!base::IsCurrentProcessElevated()) {
fprintf(stderr, "Error: %s must be run as an elevated process.", argv[0]);
return 1;
}

Powered by Google App Engine
This is Rietveld 408576698