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

Issue 71683003: Have AutofillManagerDelegate supply the AutofillWebDataService to core code. (Closed)

Created:
7 years, 1 month ago by blundell
Modified:
7 years, 1 month ago
CC:
chromium-reviews, tim+watch_chromium.org, benquan, haitaol+watch_chromium.org, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rsimha+watch_chromium.org, Ilya Sherman, android-webview-reviews_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Have AutofillManagerDelegate supply the AutofillWebDataService to core code. In this change, Autofill core code now gets the AutofillWebDataService that it should use from its embedder (i.e., AutofillManagerDelegate) rather than by calling AutofillWebDataService::FromBrowserContext(). This change is a prelude to eliminating the AutofillWebDataService::FromBrowserContext() method in favor of static methods that live in the embedders as necessary. BUG=303048 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235994

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fix unittests, respond to reviews #

Total comments: 4

Patch Set 3 : Android fix #

Total comments: 13

Patch Set 4 : Response to review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -210 lines) Patch
M android_webview/native/aw_autofill_manager_delegate.h View 1 1 chunk +2 lines, -0 lines 2 comments Download
M android_webview/native/aw_autofill_manager_delegate.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager_factory.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.cc View 1 5 chunks +10 lines, -17 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager_unittest.cc View 1 2 3 3 chunks +13 lines, -42 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager_delegate.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 4 chunks +11 lines, -16 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 5 chunks +14 lines, -14 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.h View 1 2 3 3 chunks +20 lines, -14 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 20 chunks +32 lines, -81 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 7 chunks +34 lines, -9 lines 0 comments Download
M components/autofill/core/browser/test_autofill_manager_delegate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_manager_delegate.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
blundell
Hi Ilya and Jói, This is work-in-progress, as I still have some work to do ...
7 years, 1 month ago (2013-11-13 22:59:07 UTC) #1
Ilya Sherman
Thanks, looks quite reasonable! https://codereview.chromium.org/71683003/diff/1/chrome/browser/autofill/personal_data_manager_factory.cc File chrome/browser/autofill/personal_data_manager_factory.cc (right): https://codereview.chromium.org/71683003/diff/1/chrome/browser/autofill/personal_data_manager_factory.cc#newcode38 chrome/browser/autofill/personal_data_manager_factory.cc:38: AutofillWebDataService::FromBrowserContext(profile), On 2013/11/13 22:59:07, blundell ...
7 years, 1 month ago (2013-11-14 02:22:02 UTC) #2
Jói
General approach looks good to me. Cheers, Jói https://codereview.chromium.org/71683003/diff/1/components/autofill/core/browser/autofill_manager_delegate.h File components/autofill/core/browser/autofill_manager_delegate.h (right): https://codereview.chromium.org/71683003/diff/1/components/autofill/core/browser/autofill_manager_delegate.h#newcode53 components/autofill/core/browser/autofill_manager_delegate.h:53: GetAutofillWebDataService() ...
7 years, 1 month ago (2013-11-14 12:31:48 UTC) #3
blundell
+zea@ for //chrome/browser/sync +benm@ for //android_webview https://codereview.chromium.org/71683003/diff/1/components/autofill/core/browser/autofill_manager_delegate.h File components/autofill/core/browser/autofill_manager_delegate.h (right): https://codereview.chromium.org/71683003/diff/1/components/autofill/core/browser/autofill_manager_delegate.h#newcode53 components/autofill/core/browser/autofill_manager_delegate.h:53: GetAutofillWebDataService() = 0; ...
7 years, 1 month ago (2013-11-14 16:46:30 UTC) #4
Ilya Sherman
https://codereview.chromium.org/71683003/diff/230001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc File components/autofill/core/browser/autocomplete_history_manager_unittest.cc (right): https://codereview.chromium.org/71683003/diff/230001/components/autofill/core/browser/autocomplete_history_manager_unittest.cc#newcode44 components/autofill/core/browser/autocomplete_history_manager_unittest.cc:44: } nit: Please move the closing curly brace to ...
7 years, 1 month ago (2013-11-14 23:45:54 UTC) #5
Nicolas Zea
sync LGTM
7 years, 1 month ago (2013-11-15 01:20:59 UTC) #6
blundell
Thanks for the reviews. I think the only remaining open question is the PersonalDataManager unittest. ...
7 years, 1 month ago (2013-11-15 16:04:53 UTC) #7
Jói
https://codereview.chromium.org/71683003/diff/230001/components/autofill/core/browser/personal_data_manager_unittest.cc File components/autofill/core/browser/personal_data_manager_unittest.cc (right): https://codereview.chromium.org/71683003/diff/230001/components/autofill/core/browser/personal_data_manager_unittest.cc#newcode134 components/autofill/core/browser/personal_data_manager_unittest.cc:134: content::TestBrowserThread db_thread_; On 2013/11/15 16:04:54, blundell wrote: > I ...
7 years, 1 month ago (2013-11-15 16:51:33 UTC) #8
Ilya Sherman
Alright, LGTM. Please do make sure to come back to clean up the tests sooner ...
7 years, 1 month ago (2013-11-15 23:10:20 UTC) #9
blundell
benm@: ping.
7 years, 1 month ago (2013-11-18 09:46:50 UTC) #10
joth
aw/ lgtm rubberstamp, but one drive-by on the API itself https://codereview.chromium.org/71683003/diff/420001/android_webview/native/aw_autofill_manager_delegate.h File android_webview/native/aw_autofill_manager_delegate.h (right): https://codereview.chromium.org/71683003/diff/420001/android_webview/native/aw_autofill_manager_delegate.h#newcode62 ...
7 years, 1 month ago (2013-11-18 19:36:52 UTC) #11
blundell
https://codereview.chromium.org/71683003/diff/420001/android_webview/native/aw_autofill_manager_delegate.h File android_webview/native/aw_autofill_manager_delegate.h (right): https://codereview.chromium.org/71683003/diff/420001/android_webview/native/aw_autofill_manager_delegate.h#newcode62 android_webview/native/aw_autofill_manager_delegate.h:62: GetDatabase() OVERRIDE; Thanks. I'd prefer to keep that change ...
7 years, 1 month ago (2013-11-19 11:17:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/71683003/420001
7 years, 1 month ago (2013-11-19 11:18:00 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-19 14:51:27 UTC) #14
Message was sent while issue was closed.
Change committed as 235994

Powered by Google App Engine
This is Rietveld 408576698