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

Unified Diff: content/browser/cache_storage/cache_storage_cache.cc

Issue 1985383002: Logging and check fail crbug/612358 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaned up logging Created 4 years, 7 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/cache_storage/cache_storage_cache.cc
diff --git a/content/browser/cache_storage/cache_storage_cache.cc b/content/browser/cache_storage/cache_storage_cache.cc
index 5d5bcd1fab6c9cccad166d4c8808c60aad4fbc4c..46eacf7572cbae5dbf3c5696df0f2d1febc46032 100644
--- a/content/browser/cache_storage/cache_storage_cache.cc
+++ b/content/browser/cache_storage/cache_storage_cache.cc
@@ -923,6 +923,11 @@ void CacheStorageCache::Put(const CacheStorageBatchOperation& operation,
callback.Run(CACHE_STORAGE_ERROR_STORAGE);
return;
}
+ if (blob_data_handle->IsBroken()) {
+ LOG(ERROR) << "Blob broken";
+ callback.Run(CACHE_STORAGE_ERROR_STORAGE);
+ return;
+ }
}
ErrorCallback pending_callback =

Powered by Google App Engine
This is Rietveld 408576698