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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 27036002: Update dom streams with new signatures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index ca20f438a6ac4ff056eabca407df76ab09773891..72a57d8a7f61a0a8dc5160705c07823e40fa4ec5 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -524,9 +524,7 @@ class IdbFactory extends Interceptor native "IDBFactory" {
request.onSuccess.listen((e) {
completer.complete(this);
});
- request.onError.listen((e) {
- completer.completeError(e);
- });
+ request.onError.listen(completer.completeError);
return completer.future;
} catch (e, stacktrace) {
return new Future.error(e, stacktrace);
@@ -597,9 +595,7 @@ Future _completeRequest(Request request) {
request.onSuccess.listen((e) {
completer.complete(request.result);
});
- request.onError.listen((e) {
- completer.completeError(e);
- });
+ request.onError.listen(completer.completeError);
return completer.future;
}
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
@@ -1128,10 +1124,8 @@ class ObjectStore extends Interceptor native "IDBObjectStore" {
// close.
var controller = new StreamController(sync: true);
- request.onError.listen((e) {
- //TODO: Report stacktrace once issue 4061 is resolved.
- controller.addError(e);
- });
+ //TODO: Report stacktrace once issue 4061 is resolved.
+ request.onError.listen(controller.addError);
request.onSuccess.listen((e) {
Cursor cursor = request.result;
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698