summaryrefslogtreecommitdiffstats
path: root/remoting/host/win
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2016-02-24 18:39:39 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-25 02:42:04 +0000
commit7e16a84c48423858ca62cd26e46f7dd00c3f96eb (patch)
tree31a10f27e2a5a894c61cd76f19f7623638330e54 /remoting/host/win
parent301ccdb3cfef6992faa0d4ac95f4d748116eecec (diff)
downloadchromium_src-7e16a84c48423858ca62cd26e46f7dd00c3f96eb.zip
chromium_src-7e16a84c48423858ca62cd26e46f7dd00c3f96eb.tar.gz
chromium_src-7e16a84c48423858ca62cd26e46f7dd00c3f96eb.tar.bz2
Improve handling of invalid command line in Me2Me host.
Previously the host was DCHECK'ing in remoting::ExitCodeToString() when started with invalid command line. This was happening because kHostExitCodeStrings didn't contain all possible error codes. Also the host was trying to report offline reason, but it makes no sense to report offline reason in this case. Review URL: https://codereview.chromium.org/1735523003 Cr-Commit-Position: refs/heads/master@{#377472}
Diffstat (limited to 'remoting/host/win')
-rw-r--r--remoting/host/win/host_service.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/win/host_service.cc b/remoting/host/win/host_service.cc
index 950219d..37fb9c6 100644
--- a/remoting/host/win/host_service.cc
+++ b/remoting/host/win/host_service.cc
@@ -434,7 +434,7 @@ VOID WINAPI HostService::ServiceMain(DWORD argc, WCHAR* argv[]) {
int DaemonProcessMain() {
HostService* service = HostService::GetInstance();
if (!service->InitWithCommandLine(base::CommandLine::ForCurrentProcess())) {
- return kUsageExitCode;
+ return kInvalidCommandLineExitCode;
}
return service->Run();