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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1274123003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no media changes 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/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index a8ec5aef68327f94c251f1f852ac3ab5f86ef428..e5ee0cfc3ae607054efc2437abbda88c43ac6914 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -323,12 +323,10 @@ MSVC_ENABLE_OPTIMIZE();
// specified on the command-line. Ownership is passed to the caller.
base::win::MemoryPressureMonitor* CreateWinMemoryPressureMonitor(
const base::CommandLine& parsed_command_line) {
- std::vector<std::string> thresholds;
- base::SplitString(
+ std::vector<std::string> thresholds = base::SplitString(
parsed_command_line.GetSwitchValueASCII(
switches::kMemoryPressureThresholdsMb),
- ',',
- &thresholds);
+ ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
int moderate_threshold_mb = 0;
int critical_threshold_mb = 0;

Powered by Google App Engine
This is Rietveld 408576698