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

Issue 2555373007: In case of an error in AutofillCounter's queries, do not crash. (Closed)

Created:
4 years ago by Avi (use Gerrit)
Modified:
4 years ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, Mathieu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

In case of an error in AutofillCounter's queries, do not crash. Before OnWebDataServiceRequestDone is called for a request, the request is marked as being complete by being removed from the WebDataRequestManager's pending_requests_ map. When a query from AutofillCounter fails, it is handled inside OnWebDataServiceRequestDone. By that time, it has been removed from the pending_requests_ map and is no longer allowed to be canceled. Therefore, make sure that AutofillCounter marks it as being complete so that it doesn't try to cancel it. BUG=672823 Committed: https://crrev.com/a8bf8fe81c52ff662d381a06a79d8ba68ae37ba2 Cr-Commit-Position: refs/heads/master@{#437885}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : removing adjusting #

Total comments: 2

Patch Set 4 : rev #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M components/browsing_data/core/counters/autofill_counter.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
Avi (use Gerrit)
Bernhard: review Mathieu: FYI
4 years ago (2016-12-10 21:14:04 UTC) #12
Bernhard Bauer
Code-wise LGTM, but could you explain in the CL description a) what this change does, ...
4 years ago (2016-12-12 14:56:26 UTC) #15
Avi (use Gerrit)
https://codereview.chromium.org/2555373007/diff/40001/components/browsing_data/core/counters/autofill_counter.cc File components/browsing_data/core/counters/autofill_counter.cc (right): https://codereview.chromium.org/2555373007/diff/40001/components/browsing_data/core/counters/autofill_counter.cc#newcode94 components/browsing_data/core/counters/autofill_counter.cc:94: } On 2016/12/12 14:56:26, Bernhard Bauer wrote: > Maybe ...
4 years ago (2016-12-12 15:16:48 UTC) #19
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/2555373007/60001
4 years ago (2016-12-12 15:17:04 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-12 16:29:51 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-12 16:34:26 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a8bf8fe81c52ff662d381a06a79d8ba68ae37ba2
Cr-Commit-Position: refs/heads/master@{#437885}

Powered by Google App Engine
This is Rietveld 408576698