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

Unified Diff: remoting/host/setup/me2me_native_messaging_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/me2me_native_messaging_host_main.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host_main.cc b/remoting/host/setup/me2me_native_messaging_host_main.cc
index bfcb60cef95547997965c6d47a9665c0ea48d401..c6f63ea682c1d5749eec0dd606d5dfb9649818d5 100644
--- a/remoting/host/setup/me2me_native_messaging_host_main.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
@@ -39,9 +39,9 @@
#endif // defined(OS_MACOSX)
#if defined(OS_WIN)
+#include "base/process/process_info.h"
#include "base/win/registry.h"
#include "remoting/host/pairing_registry_delegate_win.h"
-#include "remoting/host/win/elevation_helpers.h"
#endif // defined(OS_WIN)
#if defined(USE_GLIB) && !defined(OS_CHROMEOS)
@@ -123,7 +123,7 @@ int Me2MeNativeMessagingHostMain(int argc, char** argv) {
bool needs_elevation = false;
#if defined(OS_WIN)
- needs_elevation = !IsProcessElevated();
+ needs_elevation = !base::IsCurrentProcessElevated();
if (command_line->HasSwitch(kElevateSwitchName)) {
DCHECK(!needs_elevation);

Powered by Google App Engine
This is Rietveld 408576698