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; |
} |