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

Issue 12177007: Make mode argument optional for IDB transaction. (Closed)

Created:
7 years, 10 months ago by Emily Fortuna
Modified:
7 years, 10 months ago
Reviewers:
sra1, blois
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make mode argument optional for IDB transaction. BUG= Committed: https://code.google.com/p/dart/source/detail?r=18076

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/html/indexeddb_1_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Emily Fortuna
Fix for http://code.google.com/p/dart/issues/detail?id=6444
7 years, 10 months ago (2013-02-03 22:49:28 UTC) #1
blois
7 years, 10 months ago (2013-02-04 18:21:53 UTC) #2
lgtm

https://codereview.chromium.org/12177007/diff/1/tools/dom/templates/html/dart...
File tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate (right):

https://codereview.chromium.org/12177007/diff/1/tools/dom/templates/html/dart...
tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate:9: Transaction
transaction(storeName_OR_storeNames, {String mode: 'readonly'}) {
I would move the default value out of here- in general they are problematic as
they impede overrides. I believe the practical guidance has been to only use
defaults for bools.

Then use an if (mode != null) check to default it (also moving away from ?
operator).

Powered by Google App Engine
This is Rietveld 408576698