Chromium Code Reviews| Index: remoting/host/host_main.cc |
| diff --git a/remoting/host/host_main.cc b/remoting/host/host_main.cc |
| index 25e01e64fba547ee09d60e3de87670382eaef8cb..bf3dc17022fb234ddf21e4ce63e35f5d6eaad8b6 100644 |
| --- a/remoting/host/host_main.cc |
| +++ b/remoting/host/host_main.cc |
| @@ -234,14 +234,15 @@ int HostMain(int argc, char** argv) { |
| // missing and the first argument looks like an origin that represents |
| // an extension. |
| CommandLine::StringVector args = command_line->GetArgs(); |
| + if (!args.empty()) { |
|
Sergey Ulanov
2013/08/13 23:33:38
I think you fixed this in a separate CL.
rmsousa
2013/08/14 02:13:12
Yup, had to merge it here for testing while it was
|
| #if defined(OS_WIN) |
| - std::string origin = UTF16ToUTF8(args[0]); |
| + std::string origin = UTF16ToUTF8(args[0]); |
| #else |
| - std::string origin = args[0]; |
| + std::string origin = args[0]; |
| #endif |
| - if (!args.empty() && |
| - StartsWithASCII(origin, kExtensionOriginPrefix, true)) { |
| - process_type = kProcessTypeNativeMessagingHost; |
| + if (StartsWithASCII(origin, kExtensionOriginPrefix, true)) { |
| + process_type = kProcessTypeNativeMessagingHost; |
| + } |
| } |
| } |