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 472433002: [Autofill] Modified to remove const qualifiers from FormField and AutofillScanner implementation. (Closed)

Created:
6 years, 4 months ago by Pritam Nikam
Modified:
6 years, 3 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Modified to remove const qualifiers from FormField and AutofillScanner implementation. With current implemetation, most of the data-structures and function signature side Autofill FormField and AutofillScanner are kept const. Apparently any modification to FormFill becomes quite harder. At times, we endup using const_cast<>. Use of const_cast<> weakens the type system. This patch removes const qualifiers from data-structures and function signatures from Autofill FormField and AutofillScanner implementation. BUG=none

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorporated review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -57 lines) Patch
M components/autofill/core/browser/address_field.h View 1 chunk +9 lines, -9 lines 0 comments Download
M components/autofill/core/browser/address_field_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_scanner.h View 3 chunks +6 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_scanner.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M components/autofill/core/browser/credit_card_field.h View 2 chunks +8 lines, -8 lines 0 comments Download
M components/autofill/core/browser/credit_card_field.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/credit_card_field_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/email_field.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/form_field.h View 4 chunks +5 lines, -6 lines 0 comments Download
M components/autofill/core/browser/form_field.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M components/autofill/core/browser/name_field.cc View 5 chunks +8 lines, -9 lines 0 comments Download
M components/autofill/core/browser/name_field_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/phone_field.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/phone_field.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/phone_field_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Pritam Nikam
Hi Ilya & Evan, As suggested, I have removed const qualifiers from FormField and AutofillScanner ...
6 years, 4 months ago (2014-08-13 10:03:12 UTC) #1
Ilya Sherman
Please merge this into the other CL. This work is not needed except in the ...
6 years, 4 months ago (2014-08-13 19:57:56 UTC) #2
Evan Stade
I agree with Ilya that this should be merged into the other CL. That way, ...
6 years, 4 months ago (2014-08-13 22:27:46 UTC) #3
Pritam Nikam
Thanks Evan and Ilya for review. I've incorporated review comments in patch set #2. Please ...
6 years, 4 months ago (2014-08-16 04:26:11 UTC) #4
Evan Stade
lg
6 years, 4 months ago (2014-08-18 18:29:33 UTC) #5
Pritam Nikam
On 2014/08/18 18:29:33, Evan Stade wrote: > lg Thanks Evan! I'll merge these changes in ...
6 years, 4 months ago (2014-08-19 11:52:48 UTC) #6
Pritam Nikam
6 years, 3 months ago (2014-09-17 02:01:21 UTC) #7
On 2014/08/19 11:52:48, Pritam Nikam wrote:
> On 2014/08/18 18:29:33, Evan Stade wrote:
> > lg
> 
> Thanks Evan!
> I'll merge these changes in other CL
> (https://codereview.chromium.org/381613005/).

Thanks Ilya & Evan!
Closing this review as (https://codereview.chromium.org/381613005/) closed.

Thanks.

Powered by Google App Engine
This is Rietveld 408576698