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

Issue 2724583002: [Reading List] Check web state after the distillation delay. (Closed)

Created:
3 years, 9 months ago by Olivier
Modified:
3 years, 9 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

[Reading List] Check web state after the distillation delay. It is possible that the web state has been released before the timeout of the timer. If this is the case, it means that the distillation was aborted. Early return in that case. There is no Cancelable delayed task. As the current situation is simple (only one task is running at a time), store the ID of the task, and increment it when cancelling. This is inspired by RunIfNotCanceled, but adapted to this much simpler situation. Check the current ID when the task runs. If the ID was incremented, the task is cancelled. BUG=695493 Review-Url: https://codereview.chromium.org/2717483003 Cr-Commit-Position: refs/heads/master@{#452540} (cherry picked from commit d7e66510bedbf95d90337071155f8b07036cb002) Review-Url: https://codereview.chromium.org/2724583002 . Cr-Commit-Position: refs/branch-heads/2987@{#713} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/ffaa9b73b76d5c15755975266f94948413b7389a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M ios/chrome/browser/reading_list/reading_list_distiller_page.h View 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/reading_list_distiller_page.mm View 4 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
Olivier
3 years, 9 months ago (2017-02-28 09:33:33 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ffaa9b73b76d5c15755975266f94948413b7389a.

Powered by Google App Engine
This is Rietveld 408576698