|
|
DescriptionRemove an ExecutionContextTask subclass in DatabaseTracker
BUG=478194
Committed: https://crrev.com/b8d796f8ce8665e7064db8a3ff7b05b45a40c44a
Cr-Commit-Position: refs/heads/master@{#402161}
Patch Set 1 #
Total comments: 3
Depends on Patchset: Messages
Total messages: 20 (10 generated)
The CQ bit was checked by hiroshige@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Remove an ExecutionContextTask subclass in DatabaseTracker BUG= ========== to ========== Remove an ExecutionContextTask subclass in DatabaseTracker BUG=478194 ==========
hiroshige@chromium.org changed reviewers: + kinuko@chromium.org
PTAL. https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp (right): https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp:188: (*it)->getDatabaseContext()->getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&DatabaseTracker::closeOneDatabaseImmediately, crossThreadUnretained(this), originString, name, *it)); This CL passes |this| across thread, instead of calling DatabaseTracker::tracker() in the target thread. I think this is same and do not modify the behavior (because DatabaseTracker looks a singleton), but please double check.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
haraken@chromium.org changed reviewers: + haraken@chromium.org
https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp (right): https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp:188: (*it)->getDatabaseContext()->getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&DatabaseTracker::closeOneDatabaseImmediately, crossThreadUnretained(this), originString, name, *it)); Why don't you use wrapCrossThreadPersistent?
https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp (right): https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp:188: (*it)->getDatabaseContext()->getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&DatabaseTracker::closeOneDatabaseImmediately, crossThreadUnretained(this), originString, name, *it)); On 2016/06/27 01:13:52, haraken wrote: > > Why don't you use wrapCrossThreadPersistent? Because DatabaseTracker is not GCed type.
On 2016/06/27 07:20:06, hiroshige (slow) wrote: > https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... > File third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp (right): > > https://codereview.chromium.org/2099093002/diff/1/third_party/WebKit/Source/m... > third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp:188: > (*it)->getDatabaseContext()->getExecutionContext()->postTask(BLINK_FROM_HERE, > createCrossThreadTask(&DatabaseTracker::closeOneDatabaseImmediately, > crossThreadUnretained(this), originString, name, *it)); > On 2016/06/27 01:13:52, haraken wrote: > > > > Why don't you use wrapCrossThreadPersistent? > > Because DatabaseTracker is not GCed type. ah, thanks. LGTM
lgtm
The CQ bit was checked by hiroshige@chromium.org
The CQ bit was unchecked by hiroshige@chromium.org
The CQ bit was checked by hiroshige@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Remove an ExecutionContextTask subclass in DatabaseTracker BUG=478194 ========== to ========== Remove an ExecutionContextTask subclass in DatabaseTracker BUG=478194 ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Remove an ExecutionContextTask subclass in DatabaseTracker BUG=478194 ========== to ========== Remove an ExecutionContextTask subclass in DatabaseTracker BUG=478194 Committed: https://crrev.com/b8d796f8ce8665e7064db8a3ff7b05b45a40c44a Cr-Commit-Position: refs/heads/master@{#402161} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/b8d796f8ce8665e7064db8a3ff7b05b45a40c44a Cr-Commit-Position: refs/heads/master@{#402161} |