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

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

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. Created 7 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
Index: tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
index 01031d6f7aebf04d302d48c83f777943b5a7eea7..b64989ca7fae27d3cb1cf56ead02223739264992 100644
--- a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
+++ b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
@@ -24,7 +24,7 @@ $endif
{int version, void onUpgradeNeeded(VersionChangeEvent),
void onBlocked(Event)}) {
if ((version == null) != (onUpgradeNeeded == null)) {
- return new Future.immediateError(new ArgumentError(
+ return new Future.error(new ArgumentError(
'version and onUpgradeNeeded must be specified together'));
}
try {
@@ -43,7 +43,7 @@ $endif
}
return _completeRequest(request);
} catch (e, stacktrace) {
- return new Future.immediateError(e, stacktrace);
+ return new Future.error(e, stacktrace);
}
}
@@ -58,7 +58,7 @@ $endif
}
return _completeRequest(request);
} catch (e, stacktrace) {
- return new Future.immediateError(e, stacktrace);
+ return new Future.error(e, stacktrace);
}
}
@@ -71,7 +71,7 @@ $endif
return _completeRequest(request);
} catch (e, stacktrace) {
- return new Future.immediateError(e, stacktrace);
+ return new Future.error(e, stacktrace);
}
}
« no previous file with comments | « tools/dom/templates/html/impl/impl_IDBCursor.darttemplate ('k') | tools/dom/templates/html/impl/impl_IDBIndex.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698