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

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

Issue 2152953002: Refactoring Native Messaging Host process launching code into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback. Created 4 years, 5 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/setup/me2me_native_messaging_host.cc ('k') | remoting/host/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d3e48a1046d595b7a38e3084307a954f69baea3d..f9e102da59d5825bd61fdb6adb782474744f8218 100644
--- a/remoting/host/setup/me2me_native_messaging_host_main.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
@@ -4,8 +4,9 @@
#include "remoting/host/setup/me2me_native_messaging_host_main.h"
-#include <stdint.h>
-
+#include <cstdint>
+#include <memory>
+#include <string>
#include <utility>
#include "base/at_exit.h"
@@ -26,6 +27,7 @@
#include "remoting/host/pairing_registry_delegate.h"
#include "remoting/host/setup/gaia_oauth_client.h"
#include "remoting/host/setup/me2me_native_messaging_host.h"
+#include "remoting/host/switches.h"
#include "remoting/host/usage_stats_consent.h"
#if defined(OS_MACOSX)
@@ -44,12 +46,6 @@
using remoting::protocol::PairingRegistry;
-namespace {
-
-const char kParentWindowSwitchName[] = "parent-window";
-
-} // namespace
-
namespace remoting {
int StartMe2MeNativeMessagingHost() {
@@ -117,7 +113,7 @@ int StartMe2MeNativeMessagingHost() {
#if defined(OS_WIN)
needs_elevation = !IsProcessElevated();
- if (command_line->HasSwitch(kElevatingSwitchName)) {
+ if (command_line->HasSwitch(kElevateSwitchName)) {
DCHECK(!needs_elevation);
// The "elevate" switch is always accompanied by the "input" and "output"
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host.cc ('k') | remoting/host/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698