Index: content/browser/service_worker/service_worker_cache_storage.cc |
diff --git a/content/browser/service_worker/service_worker_cache_storage.cc b/content/browser/service_worker/service_worker_cache_storage.cc |
index 8551163f806c54a6fe58242115908ff2d8d4840f..8dc17cbca837a18815a2130d8c4bbd83d91e6424 100644 |
--- a/content/browser/service_worker/service_worker_cache_storage.cc |
+++ b/content/browser/service_worker/service_worker_cache_storage.cc |
@@ -12,6 +12,7 @@ |
#include "base/sha1.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_util.h" |
+#include "content/browser/fileapi/chrome_blob_storage_context.h" |
#include "content/browser/service_worker/service_worker_cache.h" |
#include "content/browser/service_worker/service_worker_cache.pb.h" |
#include "content/public/browser/browser_thread.h" |
@@ -535,10 +536,10 @@ void ServiceWorkerCacheStorage::EnumerateCaches( |
void ServiceWorkerCacheStorage::DidCreateBackend( |
base::WeakPtr<ServiceWorkerCache> cache, |
const CacheAndErrorCallback& callback, |
- bool success) { |
+ ServiceWorkerCache::ErrorType error) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
- if (!success || !cache) { |
+ if (error != ServiceWorkerCache::ErrorTypeOK) { |
// TODO(jkarlin): This should delete the directory and try again in case |
// the cache is simply corrupt. |
callback.Run(0, CACHE_STORAGE_ERROR_STORAGE); |