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

Unified Diff: storage/browser/blob/blob_data_builder.cc

Issue 913303002: Fixed IndexedDB blob retention (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « storage/browser/blob/blob_data_builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_data_builder.cc
diff --git a/storage/browser/blob/blob_data_builder.cc b/storage/browser/blob/blob_data_builder.cc
index 38b3923504d4d1283724d31c7ce70926cc1831e0..51946c882f4e8dfec78e38fdfe4966c771695d7e 100644
--- a/storage/browser/blob/blob_data_builder.cc
+++ b/storage/browser/blob/blob_data_builder.cc
@@ -5,6 +5,7 @@
#include "storage/browser/blob/blob_data_builder.h"
#include "base/time/time.h"
+#include "storage/browser/blob/shareable_file_reference.h"
namespace storage {
@@ -28,20 +29,8 @@ void BlobDataBuilder::AppendFile(const base::FilePath& file_path,
scoped_ptr<DataElement> element(new DataElement());
element->SetToFilePathRange(file_path, offset, length,
expected_modification_time);
- items_.push_back(new BlobDataItem(element.Pass()));
-}
-
-void BlobDataBuilder::AppendFile(
- const base::FilePath& file_path,
- uint64_t offset,
- uint64_t length,
- const base::Time& expected_modification_time,
- scoped_refptr<ShareableFileReference> shareable_file) {
- DCHECK(length > 0);
- scoped_ptr<DataElement> element(new DataElement());
- element->SetToFilePathRange(file_path, offset, length,
- expected_modification_time);
- items_.push_back(new BlobDataItem(element.Pass(), shareable_file));
+ items_.push_back(
+ new BlobDataItem(element.Pass(), ShareableFileReference::Get(file_path)));
}
void BlobDataBuilder::AppendBlob(const std::string& uuid,
« no previous file with comments | « storage/browser/blob/blob_data_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698