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

Unified Diff: tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate

Issue 1903973002: Fix indexed_db strong mode warnings. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: ready for review Created 4 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
« no previous file with comments | « tools/dom/templates/html/impl/impl_IDBFactory.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate b/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
index 1363056fb541de952d3f34c08dda634760515524..46bb7dd06c8eced1162f88ce98033a1ec54ddb10 100644
--- a/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
+++ b/tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate
@@ -137,18 +137,18 @@ $!MEMBERS
/**
* Helper for iterating over cursors in a request.
*/
- static Stream<Cursor> _cursorStreamFromResult(Request request,
+ static Stream/*<T>*/ _cursorStreamFromResult/*<T extends Cursor>*/(Request request,
bool autoAdvance) {
// TODO: need to guarantee that the controller provides the values
// immediately as waiting until the next tick will cause the transaction to
// close.
- var controller = new StreamController(sync: true);
+ var controller = new StreamController/*<T>*/(sync: true);
//TODO: Report stacktrace once issue 4061 is resolved.
request.onError.listen(controller.addError);
request.onSuccess.listen((e) {
- Cursor cursor = request.result;
+ var cursor = request.result as dynamic /*=T*/;
if (cursor == null) {
controller.close();
} else {
« no previous file with comments | « tools/dom/templates/html/impl/impl_IDBFactory.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698