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

Issue 7819002: Migrate AutofillProfile sync to new API. (Closed)

Created:
9 years, 3 months ago by GeorgeY
Modified:
9 years, 3 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Paweł Hajdan Jr., dhollowa
Visibility:
Public.

Description

Migrate AutofillProfile sync to new API. Still need to remove autofill_model_associator.cc/h - used for autocomplete TEST=unit-tested + all AutofillProfile sync should work correctly. BUG=83782 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100782

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 96

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 36

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 6

Patch Set 9 : '' #

Total comments: 9

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+888 lines, -1493 lines) Patch
M chrome/browser/sync/glue/autofill_change_processor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/autofill_model_associator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/sync/glue/autofill_profile_change_processor.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -114 lines 0 comments Download
D chrome/browser/sync/glue/autofill_profile_change_processor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -350 lines 0 comments Download
D chrome/browser/sync/glue/autofill_profile_model_associator.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -199 lines 0 comments Download
D chrome/browser/sync/glue/autofill_profile_model_associator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -518 lines 0 comments Download
D chrome/browser/sync/glue/autofill_profile_model_associator_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -261 lines 0 comments Download
A chrome/browser/sync/glue/autofill_profile_syncable_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +164 lines, -0 lines 8 comments Download
A chrome/browser/sync/glue/autofill_profile_syncable_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +421 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +246 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_factory_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 8 9 14 chunks +41 lines, -29 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
GeorgeY
Still working on unit-tests, so do not check them yet...
9 years, 3 months ago (2011-08-31 20:26:47 UTC) #1
GeorgeY
All should work!
9 years, 3 months ago (2011-08-31 23:25:47 UTC) #2
lipalani1
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode161 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:161: } I am concerned about the perf impact here ...
9 years, 3 months ago (2011-09-01 05:06:02 UTC) #3
Ilya Sherman
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode33 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:33: NotificationService::AllSources()); Are you sure this should be AllSources() rather ...
9 years, 3 months ago (2011-09-01 07:22:31 UTC) #4
dhollowa
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode233 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:233: AutofillProfile* merge_into, Rename |merge_into| as |profile| and get rid ...
9 years, 3 months ago (2011-09-01 20:17:49 UTC) #5
dhollowa
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode33 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:33: NotificationService::AllSources()); On 2011/09/01 07:22:31, Ilya Sherman wrote: > Are ...
9 years, 3 months ago (2011-09-01 23:11:46 UTC) #6
dhollowa
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc File chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc#newcode25 chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc:25: : public browser_sync::AutofillProfileSyncableService { nit: indent 4 spaces http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc#newcode36 ...
9 years, 3 months ago (2011-09-01 23:20:29 UTC) #7
GeorgeY
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode33 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:33: NotificationService::AllSources()); On 2011/09/01 07:22:31, Ilya Sherman wrote: > Are ...
9 years, 3 months ago (2011-09-02 04:34:12 UTC) #8
Ilya Sherman
http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode102 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:102: GUIDToProfileMap:: iterator it = nit: Extraneous space after ":: ...
9 years, 3 months ago (2011-09-02 21:49:50 UTC) #9
GeorgeY
http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode102 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:102: GUIDToProfileMap:: iterator it = On 2011/09/02 21:49:50, Ilya Sherman ...
9 years, 3 months ago (2011-09-03 00:01:29 UTC) #10
Ilya Sherman
http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode104 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:104: profiles_map_[it->first] = it->second; On 2011/09/03 00:01:29, GeorgeY wrote: > ...
9 years, 3 months ago (2011-09-03 00:10:56 UTC) #11
GeorgeY
All done http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode104 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:104: profiles_map_[it->first] = it->second; On 2011/09/03 00:10:57, Ilya ...
9 years, 3 months ago (2011-09-07 00:28:14 UTC) #12
Ilya Sherman
http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/15004/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode104 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:104: profiles_map_[it->first] = it->second; On 2011/09/07 00:28:14, GeorgeY wrote: > ...
9 years, 3 months ago (2011-09-07 01:03:57 UTC) #13
dhollowa
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode54 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:54: if (!const_cast<WebDatabase*>(web_database_)-> On 2011/09/01 23:11:46, dhollowa wrote: > nit: ...
9 years, 3 months ago (2011-09-07 01:48:15 UTC) #14
GeorgeY
http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode54 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:54: if (!const_cast<WebDatabase*>(web_database_)-> On 2011/09/07 01:48:15, dhollowa wrote: > On ...
9 years, 3 months ago (2011-09-07 20:55:07 UTC) #15
dhollowa
Getting there... http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode101 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:101: CreateOrUpdateProfile(*sync_iter, &profiles, &remaining_profiles, &bundle); On 2011/09/07 20:55:07, ...
9 years, 3 months ago (2011-09-07 21:10:24 UTC) #16
GeorgeY
Improved tests significantly. http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc File chrome/browser/sync/glue/autofill_profile_syncable_service.cc (right): http://codereview.chromium.org/7819002/diff/7019/chrome/browser/sync/glue/autofill_profile_syncable_service.cc#newcode101 chrome/browser/sync/glue/autofill_profile_syncable_service.cc:101: CreateOrUpdateProfile(*sync_iter, &profiles, &remaining_profiles, &bundle); On 2011/09/07 ...
9 years, 3 months ago (2011-09-07 23:26:24 UTC) #17
dhollowa
LGTM. Thanks. Please wait for all reviewer's approval before landing.
9 years, 3 months ago (2011-09-08 21:51:52 UTC) #18
Ilya Sherman
LGTM as well
9 years, 3 months ago (2011-09-08 21:53:48 UTC) #19
lipalani1
Just one last comment before my L G T M. I think the memory saving ...
9 years, 3 months ago (2011-09-08 23:52:02 UTC) #20
lipalani1
sorry the comment in the wrong place. changed it. http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h File chrome/browser/sync/glue/autofill_profile_syncable_service.h (right): http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode143 chrome/browser/sync/glue/autofill_profile_syncable_service.h:143: ...
9 years, 3 months ago (2011-09-08 23:53:01 UTC) #21
GeorgeY
http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h File chrome/browser/sync/glue/autofill_profile_syncable_service.h (right): http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode143 chrome/browser/sync/glue/autofill_profile_syncable_service.h:143: ScopedVector<AutofillProfile> profiles_; On 2011/09/08 23:53:01, lipalani1 wrote: > I ...
9 years, 3 months ago (2011-09-09 19:43:12 UTC) #22
lipalani1
LGTM! George has decided to file a M16 bug to address the memory issue. And ...
9 years, 3 months ago (2011-09-09 21:41:04 UTC) #23
tim (not reviewing)
http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h File chrome/browser/sync/glue/autofill_profile_syncable_service.h (right): http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode4 chrome/browser/sync/glue/autofill_profile_syncable_service.h:4: #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ We should move this (and related syncable ...
9 years, 3 months ago (2011-09-12 17:40:54 UTC) #24
GeorgeY
http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h File chrome/browser/sync/glue/autofill_profile_syncable_service.h (right): http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode4 chrome/browser/sync/glue/autofill_profile_syncable_service.h:4: #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_ On 2011/09/12 17:40:54, timsteele wrote: > We ...
9 years, 3 months ago (2011-09-12 18:28:34 UTC) #25
GeorgeY
9 years, 3 months ago (2011-09-12 18:28:39 UTC) #26
tim (not reviewing)
http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h File chrome/browser/sync/glue/autofill_profile_syncable_service.h (right): http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode138 chrome/browser/sync/glue/autofill_profile_syncable_service.h:138: PersonalDataManager* personal_data_; Also, why didn't we make the PDM ...
9 years, 3 months ago (2011-09-12 18:29:23 UTC) #27
tim (not reviewing)
Hmm, well I'd prefer if it was done here, but if not, can you make ...
9 years, 3 months ago (2011-09-12 18:30:17 UTC) #28
GeorgeY
On 2011/09/12 18:30:17, timsteele wrote: > Hmm, well I'd prefer if it was done here, ...
9 years, 3 months ago (2011-09-12 21:36:19 UTC) #29
GeorgeY
http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h File chrome/browser/sync/glue/autofill_profile_syncable_service.h (right): http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode138 chrome/browser/sync/glue/autofill_profile_syncable_service.h:138: PersonalDataManager* personal_data_; On 2011/09/12 18:29:23, timsteele wrote: > Also, ...
9 years, 3 months ago (2011-09-12 22:26:38 UTC) #30
tim (not reviewing)
9 years, 3 months ago (2011-09-12 22:29:29 UTC) #31
Ok, thanks for clarifying.
LGTM

On Mon, Sep 12, 2011 at 3:26 PM, <georgey@chromium.org> wrote:

>
> http://codereview.chromium.**org/7819002/diff/39001/chrome/**
>
browser/sync/glue/autofill_**profile_syncable_service.h<http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h>
> File chrome/browser/sync/glue/**autofill_profile_syncable_**service.h
> (right):
>
> http://codereview.chromium.**org/7819002/diff/39001/chrome/**
>
browser/sync/glue/autofill_**profile_syncable_service.h#**newcode138<http://codereview.chromium.org/7819002/diff/39001/chrome/browser/sync/glue/autofill_profile_syncable_service.h#newcode138>
> chrome/browser/sync/glue/**autofill_profile_syncable_**service.h:138:
> PersonalDataManager* personal_data_;
> On 2011/09/12 18:29:23, timsteele wrote:
>
>> Also, why didn't we make the PDM the syncable service, since it's the
>>
> actual
>
>> data service?
>>
>
> Want to re-use this service for autocomplete as well (which uses almost
> the same protobufs and so almost the same Specifics on the back-end)
>
>
>
http://codereview.chromium.**org/7819002/<http://codereview.chromium.org/7819...
>

Powered by Google App Engine
This is Rietveld 408576698