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

Unified Diff: content/browser/indexed_db/database_impl.cc

Issue 2517343002: Make indexed_db.mojom.BlobInfo.size a signed integer. (Closed)
Patch Set: Remove static cast in indexed_db_backing_store.cc:739. Created 4 years, 1 month 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 | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/database_impl.cc
diff --git a/content/browser/indexed_db/database_impl.cc b/content/browser/indexed_db/database_impl.cc
index 1037ae4a7645376351a4370000f97bd927850e9e..0ddbfef836de496e6f8edbad9eba641294473bf0 100644
--- a/content/browser/indexed_db/database_impl.cc
+++ b/content/browser/indexed_db/database_impl.cc
@@ -280,7 +280,7 @@ void DatabaseImpl::Put(
}
blob_info[i] = IndexedDBBlobInfo(info->uuid, info->file->path,
info->file->name, info->mime_type);
- if (info->size != static_cast<uint64_t>(-1)) {
+ if (info->size != -1) {
blob_info[i].set_last_modified(info->file->last_modified);
blob_info[i].set_size(info->size);
}
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698