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

Unified Diff: chrome/app/chrome_crash_reporter_client.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | chrome/browser/autocomplete/bookmark_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_crash_reporter_client.cc
diff --git a/chrome/app/chrome_crash_reporter_client.cc b/chrome/app/chrome_crash_reporter_client.cc
index a5474cd61bdeee3e36b574ea5e6fdfe8f7311bb0..067ab53ef926ce7d0cce29e5af3f1e367bc9f3e2 100644
--- a/chrome/app/chrome_crash_reporter_client.cc
+++ b/chrome/app/chrome_crash_reporter_client.cc
@@ -135,8 +135,8 @@ bool ChromeCrashReporterClient::ShouldShowRestartDialog(base::string16* title,
// The CHROME_RESTART var contains the dialog strings separated by '|'.
// See ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment()
// for details.
- std::vector<std::string> dlg_strings;
- base::SplitString(restart_info, '|', &dlg_strings);
+ std::vector<std::string> dlg_strings = base::SplitString(
+ restart_info, "|", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (dlg_strings.size() < 3)
return false;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/bookmark_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698