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

Issue 2264233002: Fix a crash in DownloadUIAddapter that happens when Java bridge is created/removed quickly while (Closed)

Created:
4 years, 4 months ago by Dmitry Titov
Modified:
4 years, 4 months ago
Reviewers:
dewittj, fgorski
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a crash in DownloadUIAddapter that happens when Java bridge is created/removed quickly while call to async GetAllPages is still in flight. BUG=639931 Committed: https://crrev.com/c1747c84cb590b1d7361cc8b70ff5ac3ec34ce42 Cr-Commit-Position: refs/heads/master@{#413654}

Patch Set 1 #

Total comments: 2

Patch Set 2 : addtri-value state #

Patch Set 3 : move AddObserver #

Total comments: 6

Patch Set 4 : fix the test #

Total comments: 1

Patch Set 5 : more checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -10 lines) Patch
M components/offline_pages/downloads/download_ui_adapter.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M components/offline_pages/downloads/download_ui_adapter.cc View 1 2 3 4 5 chunks +27 lines, -9 lines 0 comments Download
M components/offline_pages/downloads/download_ui_adapter_unittest.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
Dmitry Titov
4 years, 4 months ago (2016-08-22 20:00:58 UTC) #3
Dmitry Titov
Change reviewer to dewittj@
4 years, 4 months ago (2016-08-22 21:37:07 UTC) #6
dewittj
basic fix lgtm, some more questions about other dynamics of this class https://codereview.chromium.org/2264233002/diff/1/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc ...
4 years, 4 months ago (2016-08-22 21:54:07 UTC) #7
Dmitry Titov
Thanks, good catches both. On 2016/08/22 21:54:07, dewittj wrote: > basic fix lgtm, some more ...
4 years, 4 months ago (2016-08-22 22:21:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2264233002/40001
4 years, 4 months ago (2016-08-22 22:31:04 UTC) #13
dewittj
still lgtm
4 years, 4 months ago (2016-08-22 22:36:25 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/56382)
4 years, 4 months ago (2016-08-22 22:48:55 UTC) #16
fgorski
overall looks good, but a few comments to consider. https://codereview.chromium.org/2264233002/diff/40001/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2264233002/diff/40001/components/offline_pages/downloads/download_ui_adapter.cc#newcode55 components/offline_pages/downloads/download_ui_adapter.cc:55: ...
4 years, 4 months ago (2016-08-22 22:52:22 UTC) #18
Dmitry Titov
https://codereview.chromium.org/2264233002/diff/40001/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2264233002/diff/40001/components/offline_pages/downloads/download_ui_adapter.cc#newcode55 components/offline_pages/downloads/download_ui_adapter.cc:55: ++observers_count_; On 2016/08/22 22:52:22, fgorski wrote: > It may ...
4 years, 4 months ago (2016-08-23 01:21:35 UTC) #22
fgorski
lgtm with comment. https://codereview.chromium.org/2264233002/diff/60001/components/offline_pages/downloads/download_ui_adapter.cc File components/offline_pages/downloads/download_ui_adapter.cc (right): https://codereview.chromium.org/2264233002/diff/60001/components/offline_pages/downloads/download_ui_adapter.cc#newcode68 components/offline_pages/downloads/download_ui_adapter.cc:68: void DownloadUIAdapter::RemoveObserver(Observer* observer) { what about ...
4 years, 4 months ago (2016-08-23 01:31:58 UTC) #23
Dmitry Titov
On 2016/08/23 01:31:58, fgorski wrote: > lgtm with comment. > > https://codereview.chromium.org/2264233002/diff/60001/components/offline_pages/downloads/download_ui_adapter.cc > File components/offline_pages/downloads/download_ui_adapter.cc ...
4 years, 4 months ago (2016-08-23 02:22:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2264233002/80001
4 years, 4 months ago (2016-08-23 02:36:50 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-23 03:28:50 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 03:32:16 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c1747c84cb590b1d7361cc8b70ff5ac3ec34ce42
Cr-Commit-Position: refs/heads/master@{#413654}

Powered by Google App Engine
This is Rietveld 408576698