Index: storage/browser/blob/blob_storage_registry.cc |
diff --git a/storage/browser/blob/blob_storage_registry.cc b/storage/browser/blob/blob_storage_registry.cc |
index a0f03b25fd42a73fbd3cff7e6358c33992c27243..2be9a975645ffcc9ec27d8d257ce5e7024bc6a17 100644 |
--- a/storage/browser/blob/blob_storage_registry.cc |
+++ b/storage/browser/blob/blob_storage_registry.cc |
@@ -38,19 +38,10 @@ GURL ClearBlobUrlRef(const GURL& url) { |
} // namespace |
-BlobStorageRegistry::Entry::Entry(int refcount, BlobState state) |
- : refcount(refcount), state(state) {} |
+BlobStorageRegistry::Entry::Entry() {} |
BlobStorageRegistry::Entry::~Entry() {} |
-bool BlobStorageRegistry::Entry::TestAndSetState(BlobState expected, |
- BlobState set) { |
- if (state != expected) |
- return false; |
- state = set; |
- return true; |
-} |
- |
BlobStorageRegistry::BlobStorageRegistry() {} |
BlobStorageRegistry::~BlobStorageRegistry() { |
@@ -64,7 +55,7 @@ BlobStorageRegistry::Entry* BlobStorageRegistry::CreateEntry( |
const std::string& content_type, |
const std::string& content_disposition) { |
DCHECK(!ContainsKey(blob_map_, uuid)); |
- std::unique_ptr<Entry> entry(new Entry(1, BlobState::PENDING)); |
+ std::unique_ptr<Entry> entry(new Entry()); |
entry->content_type = content_type; |
entry->content_disposition = content_disposition; |
Entry* entry_ptr = entry.get(); |