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

Unified Diff: content/browser/service_worker/service_worker_database.cc

Issue 1274123003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no media changes 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
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);
« no previous file with comments | « content/browser/service_worker/service_worker_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698