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

Issue 2491103003: [Autofill]Enable mojo AutofillDriver for android_webview. (Closed)

Created:
4 years, 1 month ago by leonhsl(Using Gerrit)
Modified:
4 years, 1 month ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill]Enable mojo AutofillDriver for android_webview. BUG=662040 Committed: https://crrev.com/e404109db1d011479ea0fee59c5d415f44d73b22 Cr-Commit-Position: refs/heads/master@{#433418}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M android_webview/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 3 chunks +10 lines, -0 lines 3 comments Download

Messages

Total messages: 40 (15 generated)
leonhsl(Using Gerrit)
Hi, would you PTAL at this? Seems red bots are not caused by changes of ...
4 years, 1 month ago (2016-11-10 09:38:43 UTC) #6
vabr (Chromium)
Hi Han Leon; I am not completely sure whether the current situation is working as ...
4 years, 1 month ago (2016-11-10 10:13:22 UTC) #8
boliu
On 2016/11/10 10:13:22, vabr (Chromium) wrote: > Hi Han Leon; > > I am not ...
4 years, 1 month ago (2016-11-10 18:00:21 UTC) #10
Mathieu
On 2016/11/10 18:00:21, boliu wrote: > On 2016/11/10 10:13:22, vabr (Chromium) wrote: > > Hi ...
4 years, 1 month ago (2016-11-10 18:11:35 UTC) #11
leonhsl(Using Gerrit)
On 2016/11/10 18:11:35, Mathieu Perreault wrote: > On 2016/11/10 18:00:21, boliu wrote: > > On ...
4 years, 1 month ago (2016-11-11 03:17:26 UTC) #12
boliu
On 2016/11/11 03:17:26, leonhsl wrote: > On 2016/11/10 18:11:35, Mathieu Perreault wrote: > > On ...
4 years, 1 month ago (2016-11-11 05:13:40 UTC) #13
vabr (Chromium)
Thanks for the explanations. I asked one more thing below to understand better. My concern ...
4 years, 1 month ago (2016-11-11 09:07:42 UTC) #14
sgurun-gerrit only
On 2016/11/11 09:07:42, vabr (Chromium) wrote: > Thanks for the explanations. I asked one more ...
4 years, 1 month ago (2016-11-11 22:04:31 UTC) #15
sgurun-gerrit only
On 2016/11/11 22:04:31, sgurun wrote: > On 2016/11/11 09:07:42, vabr (Chromium) wrote: > > Thanks ...
4 years, 1 month ago (2016-11-11 22:12:56 UTC) #16
leonhsl(Using Gerrit)
On 2016/11/11 22:12:56, sgurun wrote: > On 2016/11/11 22:04:31, sgurun wrote: > > On 2016/11/11 ...
4 years, 1 month ago (2016-11-17 03:24:46 UTC) #17
sgurun-gerrit only
On 2016/11/17 03:24:46, leonhsl wrote: > On 2016/11/11 22:12:56, sgurun wrote: > > On 2016/11/11 ...
4 years, 1 month ago (2016-11-17 19:46:57 UTC) #18
sgurun-gerrit only
On 2016/11/17 19:46:57, sgurun wrote: > On 2016/11/17 03:24:46, leonhsl wrote: > > On 2016/11/11 ...
4 years, 1 month ago (2016-11-18 07:34:23 UTC) #19
sgurun-gerrit only
lgtm I will add a bug number and CQ https://codereview.chromium.org/2491103003/diff/1/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/2491103003/diff/1/android_webview/browser/aw_content_browser_client.cc#newcode548 android_webview/browser/aw_content_browser_client.cc:548: ...
4 years, 1 month ago (2016-11-18 23:51:28 UTC) #20
sgurun-gerrit only
On 2016/11/18 23:51:28, sgurun wrote: > lgtm > > I will add a bug number ...
4 years, 1 month ago (2016-11-18 23:52:19 UTC) #21
sgurun-gerrit only
On 2016/11/18 23:51:28, sgurun wrote: > lgtm > > I will add a bug number ...
4 years, 1 month ago (2016-11-18 23:52:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2491103003/1
4 years, 1 month ago (2016-11-18 23:53:20 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/184178)
4 years, 1 month ago (2016-11-19 01:22:47 UTC) #26
leonhsl(Using Gerrit)
https://codereview.chromium.org/2491103003/diff/1/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/2491103003/diff/1/android_webview/browser/aw_content_browser_client.cc#newcode548 android_webview/browser/aw_content_browser_client.cc:548: base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, On 2016/11/18 23:51:28, sgurun wrote: > On 2016/11/11 ...
4 years, 1 month ago (2016-11-19 12:05:31 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2491103003/1
4 years, 1 month ago (2016-11-19 12:12:31 UTC) #33
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-19 12:16:48 UTC) #34
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/e404109db1d011479ea0fee59c5d415f44d73b22 Cr-Commit-Position: refs/heads/master@{#433418}
4 years, 1 month ago (2016-11-19 12:18:21 UTC) #36
vabr (Chromium)
Thanks for the explanation, Han Leon. I'm afraid I need to understand a bit more ...
4 years, 1 month ago (2016-11-21 10:14:08 UTC) #37
leonhsl(Using Gerrit)
On 2016/11/21 10:14:08, vabr (Chromium) wrote: > Thanks for the explanation, Han Leon. > > ...
4 years, 1 month ago (2016-11-21 14:00:56 UTC) #38
vabr (Chromium)
On 2016/11/21 14:00:56, leonhsl wrote: > On 2016/11/21 10:14:08, vabr (Chromium) wrote: > > Thanks ...
4 years, 1 month ago (2016-11-21 16:59:15 UTC) #39
sgurun-gerrit only
4 years, 1 month ago (2016-11-21 21:53:56 UTC) #40
Message was sent while issue was closed.
On 2016/11/21 16:59:15, vabr (Chromium) wrote:
> On 2016/11/21 14:00:56, leonhsl wrote:
> > On 2016/11/21 10:14:08, vabr (Chromium) wrote:
> > > Thanks for the explanation, Han Leon.
> > > 
> > > I'm afraid I need to understand a bit more though. Reading your response:
> > > 
> > > >   2, It's true that chrome and webview have the same capability of
sending
> > > > autofill mojo IPC messages, but, comparing the implementation of webview
> > > > autofill client with chrome autofill client, we can see that webview
> > autofill
> > > > client is handling only those interested features, such as autocomplete,
> and
> > > is
> > > > ignoring others by empty or NOTIMPLEMENTED() functions, this means that
> > > actually
> > > > many mojo messages(except autocomplete) will never be triggered to be
sent
> > to
> > > > renderer process.
> > > 
> > > I have looked into android_webview/native/aw_autofill_client.cc. I have
the
> > > following questions:
> > >  * Does aw_autofill_client.cc already run outside of Chrome's browser
> process?
> > > (I guess yes, because the normal autofill client runs in the renderer.)
> > I think it runs in Chromium browser process, because
autofill::AutofillClient
> is
> > supposed to run in browser process.
> > Am I misunderstanding this?...
> 
> You are right. This is awkward, I mixed AutofillClient with AutofillAgent...
:)
> So the whole concern about renderer getting to decide what to drop seems to be
> void, that's good news.

And also WebView's AutofillClient also runs in the browser process (but webview
multiprocess is still a developer's feature).

> 
> > 
> > >  * Are the NOTIMPLEMENTED() calls actually triggered now that your CL
> landed?
> > > (That would be bad, because they should not be triggered and will issue a
> > > warning.)
> > OK I'm not aware that NOTIMPLEMENTED() would raise warning, I thought it's
> just
> > indicating no any operation.
> > But I suppose that if they had never been triggered in the legacy IPC world
> > before, 
> > they won't be triggered after this CL landed.
> > Hi, sgurun@, are there any test cases to check these NOTIMPLEMENTED() should
> not
> > be triggered?
> 
> If there is an easy answer, this would be good to know, but as explained
above,
> the main concern is gone, it was my mistake.

No we don't have test cases, unfortunately. 

> 
> > 
> > >  * When you say: "this means that actually many mojo messages(except
> > > autocomplete) will never be triggered to be sent to renderer process," how
> is
> > > that achieved?
> > > 
> > An example would be autofill::AutofillClient::PropagateAutofillPredictions, 
> > it's implementation in ChromeAutofillClient could trigger [1] and [2],
> > but AwAutofillClient provides an empty implementation so it will trigger
> nothing
> > to be sent to renderer process.
> 
> Thanks for all the responses!
> 
> Vaclav
> > 
> > [1]
> >
>
https://cs.chromium.org/chromium/src/components/password_manager/content/brow...
> > [2]
> >
>
https://cs.chromium.org/chromium/src/components/password_manager/content/brow...
> > 
> > > Thanks,
> > > Vaclav

Powered by Google App Engine
This is Rietveld 408576698