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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.cc

Issue 333533002: Check File snapshots and Blob byte counts when writing to IDB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix Created 6 years, 6 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/child/indexed_db/indexed_db_dispatcher.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher.cc b/content/child/indexed_db/indexed_db_dispatcher.cc
index e6fc2b97495a49797c832b527569d95ae9ee371b..e814cc87420c0438be493727378c724fa642527a 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher.cc
@@ -374,9 +374,9 @@ void IndexedDBDispatcher::RequestIDBDatabasePut(
if (info.isFile()) {
blob_or_file_info.file_path = info.filePath();
blob_or_file_info.file_name = info.fileName();
- } else {
- blob_or_file_info.size = info.size();
+ blob_or_file_info.last_modified = info.lastModified();
}
+ blob_or_file_info.size = info.size();
blob_or_file_info.uuid = info.uuid().latin1();
DCHECK(blob_or_file_info.uuid.size());
blob_or_file_info.mime_type = info.type();

Powered by Google App Engine
This is Rietveld 408576698