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

Issue 12851008: Create a common base class for all the webdatas (Closed)

Created:
7 years, 9 months ago by Cait (Slow)
Modified:
7 years, 9 months ago
Reviewers:
Jói, dhollowa
CC:
chromium-reviews, Raman Kakilate, 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, Ilya Sherman
Visibility:
Public.

Description

Create a common base class for all the webdatas Depends on: https://codereview.chromium.org/12871006/ and https://codereview.chromium.org/12491017/ Unfortunately, until we fix ownership issues, this base has to be ref-counted, which means that AutofillWebDataService has to be refcounted too in order to inherit from it. Blah. TBR=ben@chromium.org COLLABORATOR=joi@chromium.org TEST=unit_tests BUG=181277 Patch originally by caitkp@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189245

Patch Set 1 #

Total comments: 4

Patch Set 2 : Override base methods so AutofillWebData properly delegates to WDS #

Total comments: 4

Patch Set 3 : Rebase on trunk and comments #

Total comments: 19

Patch Set 4 : Fix upstream branch #

Total comments: 6

Patch Set 5 : Comments and clean up #

Patch Set 6 : Merge to head #

Patch Set 7 : Fix DRY violations. #

Patch Set 8 : Merge to parent and head for commit. #

Patch Set 9 : Merge to committed parent and head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -210 lines) Patch
M chrome/browser/api/webdata/autofill_web_data_service.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/api/webdata/web_data_service_base.h View 1 chunk +59 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 2 3 4 5 6 3 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 3 chunks +5 lines, -26 lines 0 comments Download
M chrome/browser/webdata/autofill_web_data_service_impl.h View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/webdata/autofill_web_data_service_impl.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 7 chunks +4 lines, -43 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 3 6 chunks +3 lines, -86 lines 0 comments Download
A chrome/browser/webdata/web_data_service_base.cc View 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/webdata/web_data_service_test_util.h View 1 2 3 4 5 6 2 chunks +30 lines, -0 lines 0 comments Download
A chrome/browser/webdata/web_data_service_test_util.cc View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/browser/DEPS View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M components/autofill/browser/autocomplete_history_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/autocomplete_history_manager_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -10 lines 0 comments Download
M components/autofill/browser/personal_data_manager.cc View 12 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Jói
Overall looks good. One question below. https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h File chrome/browser/api/webdata/web_data_service_base.h (right): https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h#newcode67 chrome/browser/api/webdata/web_data_service_base.h:67: scoped_ptr<WebDatabaseService> wdbs_; If ...
7 years, 9 months ago (2013-03-18 12:36:40 UTC) #1
Cait (Slow)
https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h File chrome/browser/api/webdata/web_data_service_base.h (right): https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h#newcode67 chrome/browser/api/webdata/web_data_service_base.h:67: scoped_ptr<WebDatabaseService> wdbs_; That's correct. The top level class would ...
7 years, 9 months ago (2013-03-18 13:52:00 UTC) #2
Jói
Correct, we'd have to refcount WebDatabaseService for now. On Mon, Mar 18, 2013 at 1:52 ...
7 years, 9 months ago (2013-03-18 13:53:50 UTC) #3
Jói
https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h File chrome/browser/api/webdata/web_data_service_base.h (right): https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h#newcode45 chrome/browser/api/webdata/web_data_service_base.h:45: virtual void Init(const base::FilePath& path); Only one subclass is ...
7 years, 9 months ago (2013-03-18 14:34:48 UTC) #4
Cait (Slow)
https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h File chrome/browser/api/webdata/web_data_service_base.h (right): https://codereview.chromium.org/12851008/diff/1/chrome/browser/api/webdata/web_data_service_base.h#newcode45 chrome/browser/api/webdata/web_data_service_base.h:45: virtual void Init(const base::FilePath& path); On 2013/03/18 14:34:48, Jói ...
7 years, 9 months ago (2013-03-18 14:50:15 UTC) #5
Cait (Slow)
Hi David, PTAL at c/b/webdata and c/b/api/webdata. This change factors some common parts of WebDataService ...
7 years, 9 months ago (2013-03-18 19:37:13 UTC) #6
Jói
Took another look at the full change. LGTM with a couple of nits. Cheers, Jói ...
7 years, 9 months ago (2013-03-18 20:02:17 UTC) #7
Cait (Slow)
https://codereview.chromium.org/12851008/diff/6001/chrome/browser/webdata/autofill_web_data_service_impl.h File chrome/browser/webdata/autofill_web_data_service_impl.h (right): https://codereview.chromium.org/12851008/diff/6001/chrome/browser/webdata/autofill_web_data_service_impl.h#newcode41 chrome/browser/webdata/autofill_web_data_service_impl.h:41: // WebDataServiceBase overrides (temporary until we decouple On 2013/03/18 ...
7 years, 9 months ago (2013-03-18 22:06:27 UTC) #8
dhollowa
There's a lot of repetition here from your other CL. How am I to know ...
7 years, 9 months ago (2013-03-18 22:38:38 UTC) #9
Jói
I think the repetition happened when Cait rebased on trunk; not sure exactly why. If ...
7 years, 9 months ago (2013-03-18 23:08:07 UTC) #10
Cait (Slow)
Apologies for all the confusion here. I ended up having to change the upstream branch ...
7 years, 9 months ago (2013-03-19 00:05:28 UTC) #11
dhollowa
No problem. Please take my prior comments as TODO items if they don't apply to ...
7 years, 9 months ago (2013-03-19 00:29:35 UTC) #12
Cait (Slow)
https://codereview.chromium.org/12851008/diff/11001/chrome/browser/api/webdata/web_data_service_base.h File chrome/browser/api/webdata/web_data_service_base.h (right): https://codereview.chromium.org/12851008/diff/11001/chrome/browser/api/webdata/web_data_service_base.h#newcode30 chrome/browser/api/webdata/web_data_service_base.h:30: WebDataServiceBase(); On 2013/03/18 22:38:38, dhollowa wrote: > This should ...
7 years, 9 months ago (2013-03-19 05:14:19 UTC) #13
dhollowa
https://codereview.chromium.org/12851008/diff/11001/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/12851008/diff/11001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#newcode128 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:128: class MockWebDataServiceWrapper : public WebDataServiceWrapper { On 2013/03/18 22:38:38, ...
7 years, 9 months ago (2013-03-19 15:30:52 UTC) #14
Jói
Hi David, I'm working on landing this change. Let me take a look if I ...
7 years, 9 months ago (2013-03-19 15:33:42 UTC) #15
Jói
(in case of confusion, Cait and I are using the COLLABORATOR= feature in the change ...
7 years, 9 months ago (2013-03-19 15:34:09 UTC) #16
Jói
Looks easy enough, I'll upload a new version shortly. Cheers, Jói On Tue, Mar 19, ...
7 years, 9 months ago (2013-03-19 15:37:47 UTC) #17
Jói
David, DRY violations are fixed in patch set 7. You can use the diff from ...
7 years, 9 months ago (2013-03-19 16:32:18 UTC) #18
dhollowa
LGTM. Thanks!
7 years, 9 months ago (2013-03-19 17:28:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/12851008/39004
7 years, 9 months ago (2013-03-20 10:16:05 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=109255
7 years, 9 months ago (2013-03-20 11:15:17 UTC) #21
Jói
7 years, 9 months ago (2013-03-20 11:59:49 UTC) #22
Message was sent while issue was closed.
Committed patchset #9 manually as r189245 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698