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

Issue 72613006: Eliminate AutofillWebDataService::FromBrowserContext(). (Closed)

Created:
7 years, 1 month ago by blundell
Modified:
7 years 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, markusheintz_, rsimha+watch_chromium.org, Ilya Sherman, android-webview-reviews_chromium.org, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Eliminate AutofillWebDataService::FromBrowserContext(). Core code in the Autofill component now gets the AutofillWebDataService from the embedder. This CL eliminates the declaration of the static AutofillWebDataService::FromBrowserContext() from the Autofill component's core code, instead having the concept of getting an AutofillWebDataService from a BrowserContext/Profile be entirely an embedder-level concept. BUG=303048 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238389

Patch Set 1 #

Total comments: 14

Patch Set 2 : Response to reviews #

Total comments: 16

Patch Set 3 : Response to review #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -67 lines) Patch
M android_webview/native/aw_autofill_manager_delegate.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M android_webview/native/aw_form_database.cc View 2 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager_factory.cc View 1 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/autofill_helper.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc View 1 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.h View 1 2 1 chunk +10 lines, -5 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 chunks +19 lines, -19 lines 0 comments Download
M components/autofill/core/browser/DEPS View 3 chunks +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.h View 2 chunks +0 lines, -9 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
blundell
This CL is dependent on https://codereview.chromium.org/71683003/, which eliminates the usage of AutofillWebDataService::FromBrowserContext() within core code ...
7 years, 1 month ago (2013-11-14 16:56:45 UTC) #1
blundell
zea@: //chrome/browser/sync
7 years, 1 month ago (2013-11-14 17:46:33 UTC) #2
blundell
+zea for real.
7 years, 1 month ago (2013-11-14 17:46:52 UTC) #3
Ilya Sherman
LGTM https://codereview.chromium.org/72613006/diff/1/android_webview/native/aw_autofill_manager_delegate.cc File android_webview/native/aw_autofill_manager_delegate.cc (right): https://codereview.chromium.org/72613006/diff/1/android_webview/native/aw_autofill_manager_delegate.cc#newcode80 android_webview/native/aw_autofill_manager_delegate.cc:80: DCHECK(service); nit: This is redundant with just making ...
7 years, 1 month ago (2013-11-14 23:54:33 UTC) #4
Nicolas Zea
sync LGTM
7 years, 1 month ago (2013-11-15 01:19:38 UTC) #5
Peter Kasting
https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.cc File chrome/browser/webdata/web_data_service_factory.cc (right): https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.cc#newcode206 chrome/browser/webdata/web_data_service_factory.cc:206: WebDataServiceFactory::GetAutofillWebDataForProfile(Profile* profile) { Nit: Indent 4 https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.cc#newcode209 chrome/browser/webdata/web_data_service_factory.cc:209: // ...
7 years, 1 month ago (2013-11-15 01:30:59 UTC) #6
Peter Kasting
https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.h File chrome/browser/webdata/web_data_service_factory.h (right): https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.h#newcode67 chrome/browser/webdata/web_data_service_factory.h:67: GetAutofillWebDataForProfile(Profile* profile); On 2013/11/15 01:30:59, Peter Kasting wrote: > ...
7 years, 1 month ago (2013-11-15 01:35:58 UTC) #7
blundell
On 2013/11/15 01:35:58, Peter Kasting wrote: > https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.h > File chrome/browser/webdata/web_data_service_factory.h (right): > > https://codereview.chromium.org/72613006/diff/1/chrome/browser/webdata/web_data_service_factory.h#newcode67 ...
7 years, 1 month ago (2013-11-15 06:46:33 UTC) #8
Jói
LGTM W.r.t. Peter's comment: On the embedder side, i.e. in //chrome/browser, all of the WebData ...
7 years, 1 month ago (2013-11-15 13:25:33 UTC) #9
blundell
On 2013/11/15 13:25:33, Jói wrote: > LGTM > > W.r.t. Peter's comment: On the embedder ...
7 years, 1 month ago (2013-11-15 14:01:47 UTC) #10
Jói
I don't think that would be any cleaner. Maybe cleanest would be to just call ...
7 years, 1 month ago (2013-11-15 14:08:07 UTC) #11
blundell
Whatever we decide here will set the pattern for the other "*WebDataService::FromBrowserContext()" methods (which I ...
7 years, 1 month ago (2013-11-15 14:25:35 UTC) #12
Jói
>> Maybe cleanest would be to just call >> WebDataServiceFactory::GetForProfile(...)->GetAutofillWebData() >> everywhere. Peter, I agree ...
7 years, 1 month ago (2013-11-15 16:53:23 UTC) #13
Peter Kasting
On 2013/11/15 16:53:23, Jói wrote: > >> Maybe cleanest would be to just call > ...
7 years, 1 month ago (2013-11-15 22:41:46 UTC) #14
blundell
Oops, I just realized the flaw in this approach: the returned WebDataServiceWrapper can be NULL, ...
7 years, 1 month ago (2013-11-18 09:55:22 UTC) #15
Jói
Ah, ok. Yes, keep it on WebDataServiceFactory I think. On Mon, Nov 18, 2013 at ...
7 years, 1 month ago (2013-11-18 11:29:47 UTC) #16
blundell
All comments addressed, thanks! https://codereview.chromium.org/72613006/diff/1/android_webview/native/aw_autofill_manager_delegate.cc File android_webview/native/aw_autofill_manager_delegate.cc (right): https://codereview.chromium.org/72613006/diff/1/android_webview/native/aw_autofill_manager_delegate.cc#newcode80 android_webview/native/aw_autofill_manager_delegate.cc:80: DCHECK(service); On 2013/11/14 23:54:33, Ilya ...
7 years, 1 month ago (2013-11-19 14:05:37 UTC) #17
blundell
+joth@ for android_webview/
7 years, 1 month ago (2013-11-19 14:06:34 UTC) #18
Peter Kasting
LGTM https://codereview.chromium.org/72613006/diff/540001/chrome/browser/webdata/web_data_service_factory.cc File chrome/browser/webdata/web_data_service_factory.cc (right): https://codereview.chromium.org/72613006/diff/540001/chrome/browser/webdata/web_data_service_factory.cc#newcode184 chrome/browser/webdata/web_data_service_factory.cc:184: Profile* profile, Profile::ServiceAccessType access_type) { Nit: While here: ...
7 years, 1 month ago (2013-11-19 19:14:14 UTC) #19
blundell
Thanks for the reviews. joth@/benm@: ping for android_webview. mkwst@: //chrome/browser/browsing_data https://codereview.chromium.org/72613006/diff/540001/chrome/browser/webdata/web_data_service_factory.cc File chrome/browser/webdata/web_data_service_factory.cc (right): https://codereview.chromium.org/72613006/diff/540001/chrome/browser/webdata/web_data_service_factory.cc#newcode184 ...
7 years ago (2013-12-02 16:10:59 UTC) #20
Mike West
browsing_data LGTM.
7 years ago (2013-12-02 16:26:24 UTC) #21
blundell
torne@: Could you take a look at the //android_webview changes here? Thanks!
7 years ago (2013-12-03 09:12:46 UTC) #22
Torne
android_webview LGTM
7 years ago (2013-12-03 10:57:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/72613006/790001
7 years ago (2013-12-03 11:20:50 UTC) #24
commit-bot: I haz the power
7 years ago (2013-12-03 14:08:34 UTC) #25
Message was sent while issue was closed.
Change committed as 238389

Powered by Google App Engine
This is Rietveld 408576698