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

Unified Diff: mojo/runner/init.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « mojo/runner/context.cc ('k') | native_client_sdk/src/libraries/sdk_util/string_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/init.cc
diff --git a/mojo/runner/init.cc b/mojo/runner/init.cc
index 17d5c1b46b0392ac6b58d6c1676ddc764494521e..2c7d289894796ff5a3107fb15cb7a4d10feee3c9 100644
--- a/mojo/runner/init.cc
+++ b/mojo/runner/init.cc
@@ -38,10 +38,9 @@ void WaitForDebuggerIfNecessary() {
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kWaitForDebugger)) {
- std::vector<std::string> apps_to_debug;
- base::SplitString(
- command_line->GetSwitchValueASCII(switches::kWaitForDebugger), ',',
- &apps_to_debug);
+ std::vector<std::string> apps_to_debug = base::SplitString(
+ command_line->GetSwitchValueASCII(switches::kWaitForDebugger), ",",
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::string app = "launcher";
if (command_line->HasSwitch(switches::kChildProcess)) {
app = command_line->GetSwitchValuePath(switches::kChildProcess)
« no previous file with comments | « mojo/runner/context.cc ('k') | native_client_sdk/src/libraries/sdk_util/string_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698