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

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: Regenerate / merge 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8d97428d03326acc6716e648e5c8c95582ff9ec3..f49e256bc2a544a884e948aebadd6f90c122c76f 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698