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 Cr-Commit-Position: refs/heads/master@{#437885}
Showing
Please register or sign in to comment