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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1272823003: 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
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 1b8e1d95be8ad8cefea7bea77ab60a512b4c22bf..e0390bf9f991829f38430ce7ecd5e9ff180f73de 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -600,10 +600,9 @@ void ApplyBlinkSettings(const base::CommandLine& command_line,
if (!command_line.HasSwitch(switches::kBlinkSettings))
return;
- std::vector<std::string> blink_settings;
- base::SplitString(
- command_line.GetSwitchValueASCII(switches::kBlinkSettings), ',',
- &blink_settings);
+ std::vector<std::string> blink_settings = base::SplitString(
+ command_line.GetSwitchValueASCII(switches::kBlinkSettings),
+ ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
for (const std::string& setting : blink_settings) {
size_t pos = setting.find('=');
settings->setFromStrings(
« no previous file with comments | « content/renderer/media/webrtc/stun_field_trial.cc ('k') | content/shell/renderer/layout_test/blink_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698