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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 300923003: Modify blink type map to finalize lazily (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make tables non-const Created 6 years, 7 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: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index c39811ef682542d37088e2928f9944afef33a2a1..d43271ce31f78bfe8e7c163570c9ca6676e88dab 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -35,18 +35,18 @@ class _KeyRangeFactoryProvider {
KeyRange.bound_(lower, upper, lowerOpen, upperOpen);
}
// FIXME: Can we make this private?
-const indexed_dbBlinkMap = const {
- 'IDBCursor': Cursor,
- 'IDBCursorWithValue': CursorWithValue,
- 'IDBDatabase': Database,
- 'IDBFactory': IdbFactory,
- 'IDBIndex': Index,
- 'IDBKeyRange': KeyRange,
- 'IDBObjectStore': ObjectStore,
- 'IDBOpenDBRequest': OpenDBRequest,
- 'IDBRequest': Request,
- 'IDBTransaction': Transaction,
- 'IDBVersionChangeEvent': VersionChangeEvent,
+final indexed_dbBlinkMap = {
+ 'IDBCursor': () => Cursor,
+ 'IDBCursorWithValue': () => CursorWithValue,
+ 'IDBDatabase': () => Database,
+ 'IDBFactory': () => IdbFactory,
+ 'IDBIndex': () => Index,
+ 'IDBKeyRange': () => KeyRange,
+ 'IDBObjectStore': () => ObjectStore,
+ 'IDBOpenDBRequest': () => OpenDBRequest,
+ 'IDBRequest': () => Request,
+ 'IDBTransaction': () => Transaction,
+ 'IDBVersionChangeEvent': () => VersionChangeEvent,
};
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file

Powered by Google App Engine
This is Rietveld 408576698