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

Issue 14103021: Use Observer to notify of WebDB load instead of callbacks (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

Use Observer to notify of WebDB load instead of callbacks. We were already partially doing this for Autofill, this CL just makes it so that all WebDB clients can use an observer interface, instead of passing callbacks. Also: -Split WebDatabaseService and WebDataServiceBackend into separate files TBR=isherman@chromium.org,akalin@chromium.org (c/b/password_manager/, c/b/sync/) BUG=230920 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197078

Patch Set 1 : #

Patch Set 2 : Merge and fix WIN #

Total comments: 6

Patch Set 3 : First round of comments #

Total comments: 14

Patch Set 4 : More comments #

Patch Set 5 : Pure merge #

Patch Set 6 : Fix WIN builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -253 lines) Patch
M chrome/browser/password_manager/password_store_win_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 2 3 4 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.h View 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.cc View 1 2 3 5 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_service.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_service.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M components/autofill/browser/webdata/autofill_webdata_service_observer.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/autofill/browser/webdata/web_data_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/webdata.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A components/webdata/common/web_data_service_backend.h View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
A components/webdata/common/web_data_service_backend.cc View 1 chunk +106 lines, -0 lines 0 comments Download
M components/webdata/common/web_data_service_base.h View 5 chunks +10 lines, -9 lines 0 comments Download
M components/webdata/common/web_data_service_base.cc View 1 2 3 4 chunks +23 lines, -27 lines 0 comments Download
A components/webdata/common/web_database_observer.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
M components/webdata/common/web_database_service.h View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M components/webdata/common/web_database_service.cc View 4 chunks +46 lines, -174 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Cait (Slow)
Kai and Joi, PTAL and let me know what you think of this approach. I ...
7 years, 8 months ago (2013-04-16 16:54:50 UTC) #1
Jói
I'm traveling right now, probably won't be able to look until tomorrow, but if you ...
7 years, 8 months ago (2013-04-16 19:40:39 UTC) #2
Jói
LGTM with a few nits. https://codereview.chromium.org/14103021/diff/10001/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/14103021/diff/10001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#newcode75 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:75: virtual void AddDBObserver(WebDatabaseObserver* observer) ...
7 years, 8 months ago (2013-04-17 10:52:03 UTC) #3
kaiwang
LGTM Sorry for my late response
7 years, 8 months ago (2013-04-17 23:53:50 UTC) #4
Cait (Slow)
dhollowa@: PTAL at c/b/webdata/, components/webdata/, and components/autofill/browser/webdata akalin@ PTAL at c/b/sync/glue Thanks! https://codereview.chromium.org/14103021/diff/10001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc File chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc ...
7 years, 8 months ago (2013-04-18 15:07:47 UTC) #5
dhollowa
https://codereview.chromium.org/14103021/diff/20001/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/14103021/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#newcode79 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:79: virtual void AddDBObserver(WebDatabaseObserver* observer) OVERRIDE { How about a ...
7 years, 8 months ago (2013-04-18 16:21:17 UTC) #6
Cait (Slow)
https://codereview.chromium.org/14103021/diff/20001/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/14103021/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#newcode79 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:79: virtual void AddDBObserver(WebDatabaseObserver* observer) OVERRIDE { On 2013/04/18 16:21:17, ...
7 years, 8 months ago (2013-04-19 19:06:21 UTC) #7
dhollowa
lgtm
7 years, 8 months ago (2013-04-19 19:30:58 UTC) #8
Cait (Slow)
-akalin, +atwilson for sync changes. Andrew, PTAL. This change cleans up the DB load notifications ...
7 years, 8 months ago (2013-04-24 15:42:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/14103021/34001
7 years, 7 months ago (2013-04-26 23:05:52 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 7 months ago (2013-04-26 23:08:25 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/14103021/44001
7 years, 7 months ago (2013-04-29 14:59:16 UTC) #12
commit-bot: I haz the power
7 years, 7 months ago (2013-04-29 17:55:52 UTC) #13
Message was sent while issue was closed.
Change committed as 197078

Powered by Google App Engine
This is Rietveld 408576698