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

Unified Diff: content/public/browser/desktop_media_id.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
« no previous file with comments | « content/common/plugin_list_win.cc ('k') | content/public/common/webplugininfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/desktop_media_id.cc
diff --git a/content/public/browser/desktop_media_id.cc b/content/public/browser/desktop_media_id.cc
index 1802a4d0298ee4b0b1c07a60dc53c26299b436c6..74fbb3ab89f9310a227472c28eae347f2762b420 100644
--- a/content/public/browser/desktop_media_id.cc
+++ b/content/public/browser/desktop_media_id.cc
@@ -97,8 +97,8 @@ DesktopMediaID::DesktopMediaID() = default;
// static
DesktopMediaID DesktopMediaID::Parse(const std::string& str) {
- std::vector<std::string> parts;
- base::SplitString(str, ':', &parts);
+ std::vector<std::string> parts = base::SplitString(
+ str, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
#if defined(USE_AURA)
if (parts.size() != 3)
« no previous file with comments | « content/common/plugin_list_win.cc ('k') | content/public/common/webplugininfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698