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

Unified Diff: extensions/browser/api/networking_private/networking_private_linux.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
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_helpers.cc ('k') | extensions/common/csp_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/networking_private/networking_private_linux.cc
diff --git a/extensions/browser/api/networking_private/networking_private_linux.cc b/extensions/browser/api/networking_private/networking_private_linux.cc
index 1bdb116c20aee8d048a11bc6cf4e9bdaf5348f17..bd07dc5ef66a59754a20d565f459e2cf1ed8ae0d 100644
--- a/extensions/browser/api/networking_private/networking_private_linux.cc
+++ b/extensions/browser/api/networking_private/networking_private_linux.cc
@@ -51,10 +51,8 @@ bool ParseNetworkGuid(const std::string& guid,
std::string* device_path,
std::string* access_point_path,
std::string* ssid) {
- std::vector<std::string> guid_parts;
-
- base::SplitString(guid, '|', &guid_parts);
-
+ std::vector<std::string> guid_parts =
+ base::SplitString(guid, "|", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (guid_parts.size() != 3) {
return false;
}
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_helpers.cc ('k') | extensions/common/csp_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698