Chromium Code Reviews| Index: remoting/host/remoting_me2me_host.cc |
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
| index adb79f9855ae7623879e30c543b7df3ebe13bca7..6f55f13deb192d960972857573a1beb8459ccf70 100644 |
| --- a/remoting/host/remoting_me2me_host.cc |
| +++ b/remoting/host/remoting_me2me_host.cc |
| @@ -48,6 +48,10 @@ |
| namespace { |
| +// The process exit codes. |
|
Wez
2012/04/10 21:26:20
nit: This comment doesn't really add anything.
alexeypa (please no reviews)
2012/04/10 22:18:16
Done.
|
| +const int kSuccessExitCode = 0; |
| +const int kInvalidHostConfigurationExitCode = 1; |
| + |
| // This is used for tagging system event logs. |
| const char kApplicationName[] = "chromoting"; |
| @@ -107,7 +111,7 @@ class HostProcess : public OAuthClient::Delegate { |
| int Run() { |
| bool tokens_pending = false; |
| if (!LoadConfig(file_io_thread_.message_loop_proxy(), &tokens_pending)) { |
| - return 1; |
| + return kInvalidHostConfigurationExitCode; |
| } |
| if (tokens_pending) { |
| // If we have an OAuth refresh token, then XmppSignalStrategy can't |
| @@ -122,7 +126,7 @@ class HostProcess : public OAuthClient::Delegate { |
| message_loop_.Run(); |
| - return 0; |
| + return kSuccessExitCode; |
| } |
| // Overridden from OAuthClient::Delegate |