Service Workers: Allow empty string as cache name
commit6309c874f2e36c7765d7b5e0483e241af9065ccd
authorjsbell <jsbell@chromium.org>
Fri, 5 Sep 2014 03:34:45 +0000 (4 20:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Sep 2014 03:36:25 +0000 (5 03:36 +0000)
tree8822d8d400cda193168001143e40e8c7c9d3b26e
parentea300714c42b5653189b49910f39f33202cea774
Service Workers: Allow empty string as cache name

The spec doesn't restrict the namespace of cache names, and the
implementation uses hashes to generate filenames from cache names,
so just delete the code.

BUG=408359
R=gavinp@chromium.org,jkarlin@chromium.org,michaeln@chromium.org

Review URL: https://codereview.chromium.org/539673003

Cr-Commit-Position: refs/heads/master@{#293422}
content/browser/service_worker/service_worker_cache_listener.cc
content/browser/service_worker/service_worker_cache_storage.cc
content/browser/service_worker/service_worker_cache_storage.h
content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc