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

Issue 1789001: AutoFill crash in CreditCard::SetInfo(). (Closed)

Created:
10 years, 8 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
James Hawkins
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

AutoFill crash in CreditCard::SetInfo(). Fix for crash seen in the field. The AutoFillType class was not thread-safe. These changes make it so. Also adds unit tests that cover mappings from type to group and subgroup, and out of range conditions. BUG=42341 TEST=AutoFillTypeTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45650

Patch Set 1 #

Patch Set 2 : Small cleanup. #

Total comments: 8

Patch Set 3 : 80col and namespace. #

Patch Set 4 : Removing virtual designation for methods. #

Patch Set 5 : Reverting virtual method change. They're needed for mock in sync unit tests. #

Total comments: 2

Patch Set 6 : Virtual back to original. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -153 lines) Patch
M chrome/browser/autofill/autofill_type.h View 1 chunk +6 lines, -18 lines 0 comments Download
M chrome/browser/autofill/autofill_type.cc View 1 2 1 chunk +148 lines, -83 lines 0 comments Download
A chrome/browser/autofill/autofill_type_unittest.cc View 1 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_database.h View 1 2 3 4 5 1 chunk +14 lines, -12 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 10 chunks +41 lines, -40 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dhollowa
10 years, 8 months ago (2010-04-26 04:29:12 UTC) #1
James Hawkins
Please wait for my lgtm on this one.
10 years, 8 months ago (2010-04-26 06:24:06 UTC) #2
James Hawkins
http://codereview.chromium.org/1789001/diff/4001/5001 File chrome/browser/autofill/autofill_type.cc (right): http://codereview.chromium.org/1789001/diff/4001/5001#newcode13 chrome/browser/autofill/autofill_type.cc:13: namespace { http://codereview.chromium.org/1789001/diff/4001/5004 File chrome/browser/webdata/web_database.cc (right): http://codereview.chromium.org/1789001/diff/4001/5004#newcode1672 chrome/browser/webdata/web_database.cc:1672: bool ...
10 years, 8 months ago (2010-04-26 17:32:51 UTC) #3
dhollowa
http://codereview.chromium.org/1789001/diff/4001/5001 File chrome/browser/autofill/autofill_type.cc (right): http://codereview.chromium.org/1789001/diff/4001/5001#newcode13 chrome/browser/autofill/autofill_type.cc:13: On 2010/04/26 17:32:51, James Hawkins wrote: > namespace { ...
10 years, 8 months ago (2010-04-26 18:26:51 UTC) #4
James Hawkins
http://codereview.chromium.org/1789001/diff/4001/5005 File chrome/browser/webdata/web_database.h (right): http://codereview.chromium.org/1789001/diff/4001/5005#newcode230 chrome/browser/webdata/web_database.h:230: virtual bool GetAutoFillProfileForID(int profile_id, AutoFillProfile** profile); On 2010/04/26 18:26:51, ...
10 years, 8 months ago (2010-04-26 18:39:03 UTC) #5
dhollowa
http://codereview.chromium.org/1789001/diff/4001/5005 File chrome/browser/webdata/web_database.h (right): http://codereview.chromium.org/1789001/diff/4001/5005#newcode230 chrome/browser/webdata/web_database.h:230: virtual bool GetAutoFillProfileForID(int profile_id, AutoFillProfile** profile); On 2010/04/26 18:39:04, ...
10 years, 8 months ago (2010-04-26 19:26:40 UTC) #6
dhollowa
Reverting virtual method change. They're needed for mock in sync unit tests.
10 years, 8 months ago (2010-04-26 19:44:34 UTC) #7
James Hawkins
http://codereview.chromium.org/1789001/diff/25001/26005 File chrome/browser/webdata/web_database.h (right): http://codereview.chromium.org/1789001/diff/25001/26005#newcode230 chrome/browser/webdata/web_database.h:230: virtual bool GetAutoFillProfileForID(int profile_id, AutoFillProfile** profile); Going back to ...
10 years, 8 months ago (2010-04-26 19:47:06 UTC) #8
dhollowa
http://codereview.chromium.org/1789001/diff/25001/26005 File chrome/browser/webdata/web_database.h (right): http://codereview.chromium.org/1789001/diff/25001/26005#newcode230 chrome/browser/webdata/web_database.h:230: virtual bool GetAutoFillProfileForID(int profile_id, AutoFillProfile** profile); On 2010/04/26 19:47:06, ...
10 years, 8 months ago (2010-04-26 20:06:54 UTC) #9
James Hawkins
10 years, 8 months ago (2010-04-26 20:46:38 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698