| Index: remoting/host/remoting_me2me_host.cc
|
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
|
| index 65daa1260e1e6acf705b6c44eb5b6595aa26fdf7..81a3878fce1f39a1a16c83f2072a15889e1517a1 100644
|
| --- a/remoting/host/remoting_me2me_host.cc
|
| +++ b/remoting/host/remoting_me2me_host.cc
|
| @@ -17,6 +17,7 @@
|
| #include "base/message_loop.h"
|
| #include "base/scoped_native_library.h"
|
| #include "base/string_util.h"
|
| +#include "base/stringize_macros.h"
|
| #include "base/synchronization/waitable_event.h"
|
| #include "base/threading/thread.h"
|
| #include "base/utf_string_conversions.h"
|
| @@ -81,6 +82,9 @@ const char kApplicationName[] = "chromoting";
|
| // The command line switch specifying the name of the daemon IPC endpoint.
|
| const char kDaemonIpcSwitchName[] = "daemon-pipe";
|
|
|
| +// The command line switch used to get version of the daemon.
|
| +const char kVersionSwitchName[] = "version";
|
| +
|
| const char kUnofficialOAuth2ClientId[] =
|
| "440925447803-2pi3v45bff6tp1rde2f7q6lgbor3o5uj.apps.googleusercontent.com";
|
| const char kUnofficialOAuth2ClientSecret[] = "W2ieEsG-R1gIA4MMurGrgMc_";
|
| @@ -698,6 +702,11 @@ int main(int argc, char** argv) {
|
| // LazyInstance, MessageLoop).
|
| base::AtExitManager exit_manager;
|
|
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(kVersionSwitchName)) {
|
| + printf("%s\n", STRINGIZE(VERSION));
|
| + return 0;
|
| + }
|
| +
|
| // Initialize logging with an appropriate log-file location, and default to
|
| // log to that on Windows, or to standard error output otherwise.
|
| FilePath debug_log = remoting::GetConfigDir().
|
|
|