Index: ash/display/display_manager.cc |
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc |
index 6c0fca1f2e73592eec25a36be1979e1892837182..dba2e0a649a8c9d7a29e7bd483210165df61b173 100644 |
--- a/ash/display/display_manager.cc |
+++ b/ash/display/display_manager.cc |
@@ -171,9 +171,11 @@ |
return false; |
const string size_str = |
command_line->GetSwitchValueASCII(switches::kAshHostWindowBounds); |
- for (const std::string& part : base::SplitString( |
- size_str, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) { |
- info_list.push_back(DisplayInfo::CreateFromSpec(part)); |
+ 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)); |
info_list.back().set_native(true); |
} |
MaybeInitInternalDisplay(&info_list[0]); |