Index: ash/display/display_manager.cc |
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc |
index dba2e0a649a8c9d7a29e7bd483210165df61b173..6c0fca1f2e73592eec25a36be1979e1892837182 100644 |
--- a/ash/display/display_manager.cc |
+++ b/ash/display/display_manager.cc |
@@ -171,11 +171,9 @@ bool DisplayManager::InitFromCommandLine() { |
return false; |
const string size_str = |
command_line->GetSwitchValueASCII(switches::kAshHostWindowBounds); |
- vector<string> parts; |
- base::SplitString(size_str, ',', &parts); |
- for (vector<string>::const_iterator iter = parts.begin(); |
- iter != parts.end(); ++iter) { |
- info_list.push_back(DisplayInfo::CreateFromSpec(*iter)); |
+ for (const std::string& part : base::SplitString( |
+ size_str, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) { |
+ info_list.push_back(DisplayInfo::CreateFromSpec(part)); |
info_list.back().set_native(true); |
} |
MaybeInitInternalDisplay(&info_list[0]); |