|
|
Chromium Code Reviews|
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. |
DescriptionIn 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 #Messages
Total messages: 25 (19 generated)
The CQ bit was checked by avi@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by avi@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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by avi@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...
avi@chromium.org changed reviewers: + bauerb@chromium.org
Bernhard: review Mathieu: FYI
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Code-wise LGTM, but could you explain in the CL description a) what this change does, and b) why this fixes the crash? Thanks! https://codereview.chromium.org/2555373007/diff/40001/components/browsing_dat... File components/browsing_data/core/counters/autofill_counter.cc (right): https://codereview.chromium.org/2555373007/diff/40001/components/browsing_dat... components/browsing_data/core/counters/autofill_counter.cc:94: } Maybe add an else { NOTREACHED(); } just for completeness?
Description was changed from ========== In case of an error in AutofillCounter's queries, do not crash. BUG=672823 ========== to ========== 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 ==========
The CQ bit was checked by avi@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from bauerb@chromium.org Link to the patchset: https://codereview.chromium.org/2555373007/#ps60001 (title: "rev")
https://codereview.chromium.org/2555373007/diff/40001/components/browsing_dat... File components/browsing_data/core/counters/autofill_counter.cc (right): https://codereview.chromium.org/2555373007/diff/40001/components/browsing_dat... components/browsing_data/core/counters/autofill_counter.cc:94: } On 2016/12/12 14:56:26, Bernhard Bauer wrote: > Maybe add an else { NOTREACHED(); } just for completeness? Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1481555804546280,
"parent_rev": "4e887c9dc1192de2673da07d66247c11f4846f26", "commit_rev":
"c9683ceb35331eaadea270c82a57dfebaa7a831b"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 Review-Url: https://codereview.chromium.org/2555373007 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== 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 Review-Url: https://codereview.chromium.org/2555373007 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/a8bf8fe81c52ff662d381a06a79d8ba68ae37ba2 Cr-Commit-Position: refs/heads/master@{#437885} |
