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

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed)

Created:
7 years, 7 months ago by sgurun-gerrit only
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Visibility:
Public.

Description

Enable Autocomplete feature for chromium webview Webview allows enabling/disabling autocomplete per instance which is different than chromium browser which does it per profile. Address this using external_delegate. BUG=b/6335434 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207984

Patch Set 1 #

Patch Set 2 : enable autocomplete per webview #

Patch Set 3 : move offtherecord check to external_delegate #

Patch Set 4 : added a few more checks #

Patch Set 5 : make personal_data_ optional #

Total comments: 14

Patch Set 6 : address Ben's comments #

Total comments: 38

Patch Set 7 : rebased #

Patch Set 8 : address code review minus some todos and tests #

Patch Set 9 : added a unit test #

Total comments: 33

Patch Set 10 : enable autocomplete independent of autofill. #

Total comments: 16

Patch Set 11 : rebased and addressed code review #

Patch Set 12 : rebased after core/common move #

Patch Set 13 : minor name changes #

Patch Set 14 : rebased for IPC changes #

Total comments: 32

Patch Set 15 : address nits #

Total comments: 4

Patch Set 16 : final nits #

Patch Set 17 : rebased #

Total comments: 4

Patch Set 18 : rebased again? #

Patch Set 19 : address Ben's comments #

Patch Set 20 : rebased #

Patch Set 21 : add a check that disappeared during a merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -85 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +21 lines, -3 lines 0 comments Download
M android_webview/browser/aw_autofill_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +12 lines, -28 lines 0 comments Download
M android_webview/browser/aw_browser_context.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +35 lines, -12 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +7 lines, -8 lines 0 comments Download
M android_webview/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +7 lines, -4 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +9 lines, -8 lines 0 comments Download
M components/autofill/core/browser/autocomplete_history_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +8 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +4 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +11 lines, -9 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +87 lines, -2 lines 0 comments Download
M components/autofill/core/browser/test_autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
sgurun-gerrit only
Hey Ben, Can you take a look at this CL (which is to enable autocomplete ...
7 years, 7 months ago (2013-05-17 18:30:56 UTC) #1
benm (inactive)
Hmm, this seems a little bit fragile, and I think we'll get broken often here ...
7 years, 7 months ago (2013-05-20 11:42:29 UTC) #2
sgurun-gerrit only
Let me give this a try. Sounds like a reasonable path. This means we will ...
7 years, 7 months ago (2013-05-20 21:50:44 UTC) #3
sgurun-gerrit only
Hey Ben, I made a few more changes especially regarding how we enable it. The ...
7 years, 7 months ago (2013-05-22 20:06:23 UTC) #4
sgurun-gerrit only
after thinking about it a little more, this solution seems to have a fundamental bug ...
7 years, 7 months ago (2013-05-23 00:09:30 UTC) #5
sgurun-gerrit only
Hey Ben, I made the personal_data_ optional and I think addressed the issue in previous ...
7 years, 7 months ago (2013-05-23 01:36:32 UTC) #6
benm (inactive)
This approach seems viable, but I don't feel confident enough in Autofill under the hood ...
7 years, 7 months ago (2013-05-23 12:02:21 UTC) #7
sgurun-gerrit only
@isherman PTAL, thank https://codereview.chromium.org/15097004/diff/31001/android_webview/browser/aw_autofill_external_delegate.cc File android_webview/browser/aw_autofill_external_delegate.cc (right): https://codereview.chromium.org/15097004/diff/31001/android_webview/browser/aw_autofill_external_delegate.cc#newcode18 android_webview/browser/aw_autofill_external_delegate.cc:18: if (FromWebContents(web_contents)) On 2013/05/23 12:02:21, benm ...
7 years, 7 months ago (2013-05-23 17:10:00 UTC) #8
sgurun-gerrit only
Ping, @isherman can you take a look at the components/ part?
7 years, 6 months ago (2013-05-30 14:48:50 UTC) #9
sgurun-gerrit only
On 2013/05/30 14:48:50, sgurun wrote: > Ping, @isherman can you take a look at the ...
7 years, 6 months ago (2013-06-03 15:59:04 UTC) #10
Ilya Sherman
On 2013/06/03 15:59:04, sgurun wrote: > On 2013/05/30 14:48:50, sgurun wrote: > > Ping, @isherman ...
7 years, 6 months ago (2013-06-03 19:15:27 UTC) #11
sgurun-gerrit only
On 2013/06/03 19:15:27, Ilya Sherman wrote: > On 2013/06/03 15:59:04, sgurun wrote: > > On ...
7 years, 6 months ago (2013-06-03 21:33:45 UTC) #12
Ilya Sherman
At a high level, I'm worried that checking for non-NULLness of the personal_data_manager_ everywhere seems ...
7 years, 6 months ago (2013-06-03 23:22:18 UTC) #13
sgurun-gerrit only
Hi Ilya, Many thanks for your review. PTAL, https://codereview.chromium.org/15097004/diff/38001/components/autofill/browser/autofill_external_delegate.h File components/autofill/browser/autofill_external_delegate.h (right): https://codereview.chromium.org/15097004/diff/38001/components/autofill/browser/autofill_external_delegate.h#newcode109 components/autofill/browser/autofill_external_delegate.h:109: virtual ...
7 years, 6 months ago (2013-06-13 01:13:31 UTC) #14
sgurun-gerrit only
ping! (I know too much is going on in autofill component but can you give ...
7 years, 6 months ago (2013-06-14 23:25:22 UTC) #15
Ilya Sherman
https://codereview.chromium.org/15097004/diff/56001/components/autofill/browser/autocomplete_history_manager.cc File components/autofill/browser/autocomplete_history_manager.cc (left): https://codereview.chromium.org/15097004/diff/56001/components/autofill/browser/autocomplete_history_manager.cc#oldcode131 components/autofill/browser/autocomplete_history_manager.cc:131: return; Please either keep these if-stmts, or replace them ...
7 years, 6 months ago (2013-06-15 00:28:08 UTC) #16
sgurun-gerrit only
@ilya, I think it is becoming more obvious that autocomplete should be enabled independent of ...
7 years, 6 months ago (2013-06-17 21:20:32 UTC) #17
Ilya Sherman
https://codereview.chromium.org/15097004/diff/56001/components/autofill/browser/autofill_manager_unittest.cc File components/autofill/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/15097004/diff/56001/components/autofill/browser/autofill_manager_unittest.cc#newcode2709 components/autofill/browser/autofill_manager_unittest.cc:2709: // works as expected. Presumably you could install a ...
7 years, 6 months ago (2013-06-18 05:56:24 UTC) #18
sgurun-gerrit only
Ilya, Thanks, PTAL. https://codereview.chromium.org/15097004/diff/67001/components/autofill/browser/autocomplete_history_manager.cc File components/autofill/browser/autocomplete_history_manager.cc (left): https://codereview.chromium.org/15097004/diff/67001/components/autofill/browser/autocomplete_history_manager.cc#oldcode128 components/autofill/browser/autocomplete_history_manager.cc:128: return; weird. I have if (!manager_delegate_->IsAutocompleteEnabled()) ...
7 years, 6 months ago (2013-06-19 00:16:16 UTC) #19
Ilya Sherman
Thanks, looking good. Just a bunch of nits: https://codereview.chromium.org/15097004/diff/84001/components/autofill/browser/autocomplete_history_manager.cc File components/autofill/browser/autocomplete_history_manager.cc (right): https://codereview.chromium.org/15097004/diff/84001/components/autofill/browser/autocomplete_history_manager.cc#newcode48 components/autofill/browser/autocomplete_history_manager.cc:48: autofill::AutofillManagerDelegate* ...
7 years, 6 months ago (2013-06-19 00:38:27 UTC) #20
sgurun-gerrit only
PTAL, thanks https://codereview.chromium.org/15097004/diff/84001/components/autofill/browser/autocomplete_history_manager.cc File components/autofill/browser/autocomplete_history_manager.cc (right): https://codereview.chromium.org/15097004/diff/84001/components/autofill/browser/autocomplete_history_manager.cc#newcode48 components/autofill/browser/autocomplete_history_manager.cc:48: autofill::AutofillManagerDelegate* manager_delegate) On 2013/06/19 00:38:27, Ilya Sherman ...
7 years, 6 months ago (2013-06-19 17:56:22 UTC) #21
Ilya Sherman
Thanks! LGTM with a final two comments: https://codereview.chromium.org/15097004/diff/94001/components/autofill/browser/autofill_manager_unittest.cc File components/autofill/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/15097004/diff/94001/components/autofill/browser/autofill_manager_unittest.cc#newcode2737 components/autofill/browser/autofill_manager_unittest.cc:2737: autocomplete_history_manager.get()); Pretty ...
7 years, 6 months ago (2013-06-19 23:19:54 UTC) #22
sgurun-gerrit only
many thanks, https://codereview.chromium.org/15097004/diff/94001/components/autofill/browser/autofill_manager_unittest.cc File components/autofill/browser/autofill_manager_unittest.cc (right): https://codereview.chromium.org/15097004/diff/94001/components/autofill/browser/autofill_manager_unittest.cc#newcode2737 components/autofill/browser/autofill_manager_unittest.cc:2737: autocomplete_history_manager.get()); You are right. thanks. On 2013/06/19 ...
7 years, 6 months ago (2013-06-20 15:18:44 UTC) #23
sgurun-gerrit only
benm, need aw review
7 years, 6 months ago (2013-06-20 17:12:22 UTC) #24
benm (inactive)
basically all looking good! Thanks for the reviews Ilya! https://chromiumcodereview.appspot.com/15097004/diff/111001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://chromiumcodereview.appspot.com/15097004/diff/111001/android_webview/browser/aw_browser_context.cc#newcode143 android_webview/browser/aw_browser_context.cc:143: ...
7 years, 6 months ago (2013-06-20 18:13:41 UTC) #25
sgurun-gerrit only
https://chromiumcodereview.appspot.com/15097004/diff/111001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://chromiumcodereview.appspot.com/15097004/diff/111001/android_webview/browser/aw_browser_context.cc#newcode143 android_webview/browser/aw_browser_context.cc:143: autofill::prefs::kAutofillEnabled, false); On 2013/06/20 18:13:42, benm wrote: > Maybe ...
7 years, 6 months ago (2013-06-20 18:50:29 UTC) #26
benm (inactive)
lgtm
7 years, 6 months ago (2013-06-20 18:52:44 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/15097004/99022
7 years, 6 months ago (2013-06-20 18:57:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/15097004/99022
7 years, 6 months ago (2013-06-21 14:30:42 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/15097004/139002
7 years, 6 months ago (2013-06-21 20:25:24 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/15097004/157022
7 years, 6 months ago (2013-06-21 21:50:33 UTC) #31
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 00:57:49 UTC) #32
Message was sent while issue was closed.
Change committed as 207984

Powered by Google App Engine
This is Rietveld 408576698