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

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

Issue 2049173003: Updating remoting_start_host to use remoting_core.dll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback Created 4 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
« no previous file with comments | « remoting/host/setup/start_host_main.h ('k') | remoting/host/win/version.rc.jinja2 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/start_host_main.cc
diff --git a/remoting/host/setup/start_host.cc b/remoting/host/setup/start_host_main.cc
similarity index 97%
rename from remoting/host/setup/start_host.cc
rename to remoting/host/setup/start_host_main.cc
index 0babfed6f9e6979fdacdd961613f311bb04c82a3..b6213f770ed6a0dd8f690d42ab7e7ad1ee18d77c 100644
--- a/remoting/host/setup/start_host.cc
+++ b/remoting/host/setup/start_host_main.cc
@@ -1,8 +1,8 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-//
-// A simple command-line app that registers and starts a host.
+
+#include "remoting/host/setup/start_host_main.h"
#include <stddef.h>
#include <stdio.h>
@@ -31,7 +31,9 @@
#include "remoting/host/win/elevation_helpers.h"
#endif // defined(OS_WIN)
-using remoting::HostStarter;
+namespace remoting {
+
+namespace {
// True if the host was started successfully.
bool g_started = false;
@@ -110,7 +112,9 @@ std::string GetAuthorizationCodeUri() {
return remoting::GetOauthStartUrl(remoting::GetDefaultOauthRedirectUrl());
}
-int main(int argc, char** argv) {
+} // namespace
+
+int StartHostMain(int argc, char** argv) {
// google_apis::GetOAuth2ClientID/Secret need a static CommandLine.
base::CommandLine::Init(argc, argv);
const base::CommandLine* command_line =
@@ -233,3 +237,5 @@ int main(int argc, char** argv) {
return g_started ? 0 : 1;
}
+
+} // namespace remoting
« no previous file with comments | « remoting/host/setup/start_host_main.h ('k') | remoting/host/win/version.rc.jinja2 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698