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

Unified Diff: remoting/host/setup/me2me_native_messaging_host.cc

Issue 290173011: Cleanup: Use base::CommandLine in remoting/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 7 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
Index: remoting/host/setup/me2me_native_messaging_host.cc
===================================================================
--- remoting/host/setup/me2me_native_messaging_host.cc (revision 272152)
+++ remoting/host/setup/me2me_native_messaging_host.cc (working copy)
@@ -592,30 +592,33 @@
return;
}
- const CommandLine* current_command_line = CommandLine::ForCurrentProcess();
- const CommandLine::SwitchMap& switches = current_command_line->GetSwitches();
- CommandLine::StringVector args = current_command_line->GetArgs();
+ const base::CommandLine* current_command_line =
+ base::CommandLine::ForCurrentProcess();
+ const base::CommandLine::SwitchMap& switches =
+ current_command_line->GetSwitches();
+ base::CommandLine::StringVector args = current_command_line->GetArgs();
// Create the child process command line by copying switches from the current
// command line.
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
command_line.AppendSwitch(kElevatingSwitchName);
command_line.AppendSwitchASCII(kInputSwitchName, input_pipe_name);
command_line.AppendSwitchASCII(kOutputSwitchName, output_pipe_name);
DCHECK(!current_command_line->HasSwitch(kElevatingSwitchName));
- for (CommandLine::SwitchMap::const_iterator i = switches.begin();
+ for (base::CommandLine::SwitchMap::const_iterator i = switches.begin();
i != switches.end(); ++i) {
command_line.AppendSwitchNative(i->first, i->second);
}
- for (CommandLine::StringVector::const_iterator i = args.begin();
+ for (base::CommandLine::StringVector::const_iterator i = args.begin();
i != args.end(); ++i) {
command_line.AppendArgNative(*i);
}
// Get the name of the binary to launch.
base::FilePath binary = current_command_line->GetProgram();
- CommandLine::StringType parameters = command_line.GetCommandLineString();
+ base::CommandLine::StringType parameters =
+ command_line.GetCommandLineString();
// Launch the child process requesting elevation.
SHELLEXECUTEINFO info;
« no previous file with comments | « remoting/host/setup/daemon_controller_delegate_linux.cc ('k') | remoting/host/setup/me2me_native_messaging_host_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698