| Index: content/browser/dom_storage/session_storage_database.cc
|
| diff --git a/content/browser/dom_storage/session_storage_database.cc b/content/browser/dom_storage/session_storage_database.cc
|
| index f3ac14da3c9d91dd2d5afa57c0191e325f769b2b..3a9457121d297554867fd5309ba3558dcfe9e76d 100644
|
| --- a/content/browser/dom_storage/session_storage_database.cc
|
| +++ b/content/browser/dom_storage/session_storage_database.cc
|
| @@ -298,8 +298,7 @@
|
| std::string current_namespace_id;
|
| for (it->Next(); it->Valid(); it->Next()) {
|
| std::string key = it->key().ToString();
|
| - if (!base::StartsWith(key, namespace_prefix,
|
| - base::CompareCase::SENSITIVE)) {
|
| + if (key.find(namespace_prefix) != 0) {
|
| // Iterated past the "namespace-" keys.
|
| break;
|
| }
|
| @@ -498,8 +497,7 @@
|
| // Skip the dummy entry "namespace-<namespaceid>-" and iterate the origins.
|
| for (it->Next(); it->Valid(); it->Next()) {
|
| std::string key = it->key().ToString();
|
| - if (!base::StartsWith(key, namespace_start_key,
|
| - base::CompareCase::SENSITIVE)) {
|
| + if (key.find(namespace_start_key) != 0) {
|
| // Iterated past the origins for this namespace.
|
| break;
|
| }
|
| @@ -551,7 +549,7 @@
|
| if (!it->Valid())
|
| return true;
|
| std::string key = it->key().ToString();
|
| - if (!base::StartsWith(key, namespace_start_key, base::CompareCase::SENSITIVE))
|
| + if (key.find(namespace_start_key) != 0)
|
| batch->Delete(namespace_start_key);
|
| return true;
|
| }
|
| @@ -610,7 +608,7 @@
|
| // Skip the dummy entry "map-<mapid>-".
|
| for (it->Next(); it->Valid(); it->Next()) {
|
| std::string key = it->key().ToString();
|
| - if (!base::StartsWith(key, map_start_key, base::CompareCase::SENSITIVE)) {
|
| + if (key.find(map_start_key) != 0) {
|
| // Iterated past the keys in this map.
|
| break;
|
| }
|
|
|