Index: content/browser/service_worker/service_worker_database.cc |
diff --git a/content/browser/service_worker/service_worker_database.cc b/content/browser/service_worker/service_worker_database.cc |
index ddfcb742fea20c0e6e0d6f35dea7f8dad8c7b600..b79894ea803f780814b0ea13c17f2e17424ff021 100644 |
--- a/content/browser/service_worker/service_worker_database.cc |
+++ b/content/browser/service_worker/service_worker_database.cc |
@@ -1214,8 +1214,9 @@ ServiceWorkerDatabase::UpgradeDatabaseSchemaFromV1ToV2() { |
if (!RemovePrefix(itr->key().ToString(), kRegKeyPrefix, &key)) |
break; |
- std::vector<std::string> parts; |
- base::SplitStringDontTrim(key, kKeySeparator, &parts); |
+ std::vector<std::string> parts = |
+ base::SplitString(key, std::string(1, kKeySeparator), |
+ base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); |
if (parts.size() != 2) { |
status = STATUS_ERROR_CORRUPTED; |
HandleReadResult(FROM_HERE, status); |