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

Unified Diff: ash/display/display_manager.cc

Issue 1278973003: Revert of Update SplitString calls to new form (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 | « no previous file | ash/test/display_manager_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
« no previous file with comments | « no previous file | ash/test/display_manager_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698