Index: chrome/browser/chromeos/login/chrome_restart_request.cc |
diff --git a/chrome/browser/chromeos/login/chrome_restart_request.cc b/chrome/browser/chromeos/login/chrome_restart_request.cc |
index 5d4bf58e0117341bcb1712a96573ef1461170fbd..e8dd4d00b998bd76c421345297ce455a97854bb9 100644 |
--- a/chrome/browser/chromeos/login/chrome_restart_request.cc |
+++ b/chrome/browser/chromeos/login/chrome_restart_request.cc |
@@ -257,10 +257,9 @@ std::string DeriveCommandLine(const GURL& start_url, |
// Simulates a session manager restart by launching give command line |
// and exit current process. |
void ReLaunch(const std::string& command_line) { |
- std::vector<std::string> argv; |
- |
// This is not a proper way to get |argv| but it's good enough for debugging. |
- base::SplitString(command_line, ' ', &argv); |
+ std::vector<std::string> argv = base::SplitString( |
+ command_line, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
base::LaunchProcess(argv, base::LaunchOptions()); |
chrome::AttemptUserExit(); |