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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.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/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tools/dom/src/EventStreamProvider.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 94c23a0f98d2adda79df9160e1860cfc799e9730..9a14a83e46ec2ec34d14230d5d4b39b8f6d5f786 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -312,9 +312,7 @@ class IdbFactory extends NativeFieldWrapperClass1 {
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);
@@ -382,9 +380,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
@@ -804,10 +800,8 @@ class ObjectStore extends NativeFieldWrapperClass1 {
// 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/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698