Index: extensions/common/permissions/socket_permission_data.cc |
diff --git a/extensions/common/permissions/socket_permission_data.cc b/extensions/common/permissions/socket_permission_data.cc |
index a01c20f50aca076a8b8fa404361df45d72fae3eb..f22f14a1eb567527826eececdba832d05ab9139f 100644 |
--- a/extensions/common/permissions/socket_permission_data.cc |
+++ b/extensions/common/permissions/socket_permission_data.cc |
@@ -124,8 +124,9 @@ SocketPermissionEntry& SocketPermissionData::entry() { |
bool SocketPermissionData::Parse(const std::string& permission) { |
Reset(); |
- std::vector<std::string> tokens; |
- base::SplitStringDontTrim(permission, kColon, &tokens); |
+ std::vector<std::string> tokens = |
+ base::SplitString(permission, std::string(1, kColon), |
+ base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); |
if (tokens.empty()) |
return false; |