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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.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/browser/indexed_db/indexed_db_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index b147951fa337ad756a8d39d01f47e657b918d5b0..47265d5c98651d5bdb168940d7dff6b7ad9a03ba 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -650,6 +650,11 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnPut(
}
blob_info[i] =
IndexedDBBlobInfo(info.uuid, path, info.file_name, info.mime_type);
+ if (info.size != static_cast<uint64_t>(-1)) {
cmumford 2014/06/19 19:37:54 Just curious why IndexedDBMsg_BlobOrFileInfo.size
ericu 2014/06/19 21:00:04 IIRC it's a remnant of the WebKit API; we might wa
+ blob_info[i].set_last_modified(
+ base::Time::FromDoubleT(info.last_modified));
+ blob_info[i].set_size(info.size);
+ }
} else {
blob_info[i] = IndexedDBBlobInfo(info.uuid, info.mime_type, info.size);
}

Powered by Google App Engine
This is Rietveld 408576698