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

Unified Diff: android_webview/browser/aw_media_client_android.cc

Issue 1197243004: Replace some Tokenize calls with SplitString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android Created 5 years, 6 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 | ash/display/display_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_media_client_android.cc
diff --git a/android_webview/browser/aw_media_client_android.cc b/android_webview/browser/aw_media_client_android.cc
index bc7146540ce17152485031c02abc0790ae1defbd..9bb7d749a7a78c34aeed310ad93b823e3cc43bd4 100644
--- a/android_webview/browser/aw_media_client_android.cc
+++ b/android_webview/browser/aw_media_client_android.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
+#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
namespace android_webview {
@@ -28,8 +29,9 @@ media::MediaClientAndroid::KeySystemUuidMap::value_type CreateMappingFromString(
const std::string& key_system_uuid_mapping) {
std::vector<uint8_t> uuid;
- std::vector<std::string> tokens;
- Tokenize(key_system_uuid_mapping, ",", &tokens);
+ std::vector<std::string> tokens =
+ base::SplitString(key_system_uuid_mapping, ",", base::KEEP_WHITESPACE,
+ base::SPLIT_WANT_NONEMPTY);
RCHECK(tokens.size() == 2);
std::string key_system;
« no previous file with comments | « no previous file | ash/display/display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698