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

Unified Diff: content/browser/browser_main_loop.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/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 70f474c20e7539253785f4ced44e0715d791e8bf..1a39c1fd82d53d8be00256b0da3a43d9b16b1573 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