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

Issue 2497383002: Fix DCHECK failure when ChromeActivity#onPauseWithNative() is called many times quickly (Closed)

Created:
4 years, 1 month ago by pkotwicz
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DCHECK failure when ChromeActivity#onPauseWithNative() is called many times quickly ChromeActivity#onPauseWithNative() is called several as a result of calling WebappDelegateFactory#activateContents() for a WebAPK. The problem is with TabContentManager::CacheTab(). If TabContentManager::CacheTab() is called while a readback for the tab is pending, ThumbnailCache::Remove() is called. ThumbnailCache::Remove() removes the entry for |tab_id| from |ThumbnailCache::thumbnail_meta_data_|. When the readback completes, the callback (TabContentManager::PutThumbnailIntoCache()) fails because |ThumbnailCache::thumbnail_meta_data_| does not contain an entry for |tab_id|. BUG=665096 Committed: https://crrev.com/e299953842a5913ea92cfeb6f0079acfb22ea407 Cr-Commit-Position: refs/heads/master@{#432352}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/browser/android/compositor/tab_content_manager.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (8 generated)
pkotwicz
dtrainor@ can you please take a look?
4 years, 1 month ago (2016-11-14 19:41:36 UTC) #4
David Trainor- moved to gerrit
lgtm thanks for the fix!
4 years, 1 month ago (2016-11-15 20:09:19 UTC) #5
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/2497383002/1
4 years, 1 month ago (2016-11-15 20:53:38 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/261007)
4 years, 1 month ago (2016-11-15 21:12:26 UTC) #9
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/2497383002/1
4 years, 1 month ago (2016-11-16 01:34:41 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-16 01:54:12 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 01:57:19 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e299953842a5913ea92cfeb6f0079acfb22ea407
Cr-Commit-Position: refs/heads/master@{#432352}

Powered by Google App Engine
This is Rietveld 408576698