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

Issue 14081043: Hook up Autofill Backend interface to SyncableServices (Closed)

Created:
7 years, 8 months ago by Cait (Slow)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Raman Kakilate, akalin, Raghu Simha, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, haitaol1, Ilya Sherman, tim (not reviewing)
Visibility:
Public.

Description

Make Autofill SyncableServices use a backend interface for DB work, rather than calling WebDataService directly. This will (eventually) allow WebDataService to live entirely on the UI Thread, and also ensures that we don't expose any more of the backend functionality than is needed by the SyncableServices. (depends on: https://codereview.chromium.org/14679005/) BUG=230920 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201979

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix weak ptrs #

Patch Set 3 : Split delegate code into separate CL #

Patch Set 4 : Tests #

Patch Set 5 : Working tests #

Patch Set 6 : Interface #

Patch Set 7 : Update interface #

Total comments: 21

Patch Set 8 : Comments #

Total comments: 2

Patch Set 9 : Nit and merge #

Patch Set 10 : Pure merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -113 lines) Patch
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +41 lines, -4 lines 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.cc View 1 2 3 4 5 6 7 8 11 chunks +22 lines, -20 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -10 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_backend.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_backend_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_backend_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +22 lines, -21 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_service.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -11 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -20 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Cait (Slow)
Apologies...this CL is a bit of a beast. The parts that pertain to the delegate-getting ...
7 years, 8 months ago (2013-04-25 15:41:15 UTC) #1
erikwright (departed)
https://codereview.chromium.org/14081043/diff/1/components/autofill/browser/webdata/autofill_webdata_backend.cc File components/autofill/browser/webdata/autofill_webdata_backend.cc (right): https://codereview.chromium.org/14081043/diff/1/components/autofill/browser/webdata/autofill_webdata_backend.cc#newcode53 components/autofill/browser/webdata/autofill_webdata_backend.cc:53: weak_ptr_factory_.InvalidateWeakPtrs(); Not necessary - this is done by ~WeakPtrFactory. ...
7 years, 8 months ago (2013-04-25 19:06:10 UTC) #2
tim (not reviewing)
Just to confirm that a few necessary sync data type invariants remain unchanged with this ...
7 years, 8 months ago (2013-04-25 19:41:13 UTC) #3
Cait (Slow)
On 2013/04/25 19:41:13, timsteele wrote: > Just to confirm that a few necessary sync data ...
7 years, 8 months ago (2013-04-25 23:06:49 UTC) #4
Cait (Slow)
Ilya: PTAL at components/autofill/ and c/b/webdata/(autofill|autocomplete)* Joi: PTAL at c/b/webdata/web_data_service_factory Tim: PTAL at c/b/sync (and ...
7 years, 7 months ago (2013-05-13 17:41:09 UTC) #5
Ilya Sherman
https://codereview.chromium.org/14081043/diff/24001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc File chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc (right): https://codereview.chromium.org/14081043/diff/24001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#newcode144 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:144: scoped_ptr<AutofillWebDataBackend> autofill_backend_; nit: Can this be a direct class ...
7 years, 7 months ago (2013-05-13 23:44:47 UTC) #6
Jói
LGTM once Ilya's comments are addressed.
7 years, 7 months ago (2013-05-14 21:43:18 UTC) #7
Cait (Slow)
https://codereview.chromium.org/14081043/diff/24001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc File chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc (right): https://codereview.chromium.org/14081043/diff/24001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#newcode144 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:144: scoped_ptr<AutofillWebDataBackend> autofill_backend_; On 2013/05/13 23:44:47, Ilya Sherman wrote: > ...
7 years, 7 months ago (2013-05-14 22:30:08 UTC) #8
Ilya Sherman
LGTM, thanks :) https://codereview.chromium.org/14081043/diff/24001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): https://codereview.chromium.org/14081043/diff/24001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode198 chrome/browser/webdata/autocomplete_syncable_service.cc:198: autofill_webdata_backend_->RemoveExpiredFormElementsWrapper(); On 2013/05/14 22:30:08, caitkp wrote: ...
7 years, 7 months ago (2013-05-14 23:03:15 UTC) #9
Cait (Slow)
ping: timsteele@chromium.org for c/b/sync changes. https://codereview.chromium.org/14081043/diff/34001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): https://codereview.chromium.org/14081043/diff/34001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode338 chrome/browser/webdata/autocomplete_syncable_service.cc:338: webdata_backend_->GetDatabase())->UpdateAutofillEntries(new_entries)) { On 2013/05/14 ...
7 years, 7 months ago (2013-05-16 15:04:00 UTC) #10
tim (not reviewing)
sync/ LGTM
7 years, 7 months ago (2013-05-23 01:15:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/14081043/50001
7 years, 7 months ago (2013-05-23 15:19:48 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=152966
7 years, 7 months ago (2013-05-23 17:22:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/14081043/50001
7 years, 7 months ago (2013-05-23 18:37:46 UTC) #14
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 06:23:27 UTC) #15
Message was sent while issue was closed.
Change committed as 201979

Powered by Google App Engine
This is Rietveld 408576698