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

Unified Diff: remoting/host/host_main.cc

Issue 1735523003: Improve handling of invalid command line in Me2Me host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_threads
Patch Set: Created 4 years, 10 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/host_exit_codes.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_main.cc
diff --git a/remoting/host/host_main.cc b/remoting/host/host_main.cc
index 961f36c99654db951fcdac75f0010f2dc2b1f5d3..6501fb74c1177a260958b57c9390fed684283915 100644
--- a/remoting/host/host_main.cc
+++ b/remoting/host/host_main.cc
@@ -202,7 +202,7 @@ int HostMain(int argc, char** argv) {
fprintf(stderr, "Unknown process type '%s' specified.",
process_type.c_str());
Usage(command_line->GetProgram());
- return kUsageExitCode;
+ return kInvalidCommandLineExitCode;
}
// Required to find the ICU data file, used by some file_util routines.
@@ -212,7 +212,7 @@ int HostMain(int argc, char** argv) {
// Invoke the entry point.
int exit_code = main_routine();
- if (exit_code == kUsageExitCode) {
+ if (exit_code == kInvalidCommandLineExitCode) {
Usage(command_line->GetProgram());
}
« no previous file with comments | « remoting/host/host_exit_codes.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698