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

Unified Diff: content/common/indexed_db/indexed_db_struct_traits.cc

Issue 2773823002: Use a two-part data format version in IndexedDB metadata. (Closed)
Patch Set: jsbell, cmumford Created 3 years, 8 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/common/indexed_db/indexed_db_struct_traits.cc
diff --git a/content/common/indexed_db/indexed_db_struct_traits.cc b/content/common/indexed_db/indexed_db_struct_traits.cc
index 85d5fe602f7b5def4eb972a15454a2c14e6ad8ee..89646ab376dc800c345c81a512441f242d3aa053 100644
--- a/content/common/indexed_db/indexed_db_struct_traits.cc
+++ b/content/common/indexed_db/indexed_db_struct_traits.cc
@@ -246,6 +246,16 @@ bool StructTraits<indexed_db::mojom::DatabaseMetadataDataView,
}
// static
+bool StructTraits<indexed_db::mojom::DataFormatVersionDataView,
+ content::IndexedDBDataFormatVersion>::
+ Read(indexed_db::mojom::DataFormatVersionDataView data,
+ content::IndexedDBDataFormatVersion* out) {
+ *out = content::IndexedDBDataFormatVersion(data.v8_version(),
+ data.blink_version());
+ return true;
+}
+
+// static
CursorDirection
EnumTraits<CursorDirection, blink::WebIDBCursorDirection>::ToMojom(
blink::WebIDBCursorDirection input) {

Powered by Google App Engine
This is Rietveld 408576698