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

Unified Diff: remoting/host/host_main.cc

Issue 22992002: Service account setup for headless Linux hosts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | remoting/host/setup/host_starter.h » ('j') | remoting/host/setup/host_starter.cc » ('J')
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 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;
+ }
}
}
« no previous file with comments | « no previous file | remoting/host/setup/host_starter.h » ('j') | remoting/host/setup/host_starter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698