DescriptionEliminate PasswordAutofillAgentConstructed() in mojo interface PasswordManagerDriver
PasswordAutofillAgentConstructed() is just for autofill::PasswordAutofillAgent to
get logging state from browser side when PasswordAutofillAgent is created.
It's useful before due to lack of pending mechanism for legacy IPCs,
but now in mojo world we can achieve this goal without it.
This CL lets browser side just send logging state as soon as it's ready,
even at that timing point renderer process has not started or has not created
PasswordAutofillAgent, the mojo call
autofill::mojom::PasswordAutofillAgent::SetLoggingState() will be cached
inside mojo message pipe and be executed immediately once PasswordAutofillAgent
instantiates and binds itself with the pending mojo connection.
This keeps exactly the same behavior with before:
autofill::mojom::PasswordAutofillAgent::SetLoggingState() is always the first
mojo call arriving at autofill::PasswordAutofillAgent from browser side.
BUG=676814
TEST=components_unittests
Review-Url: https://codereview.chromium.org/2680163006
Cr-Commit-Position: refs/heads/master@{#450171}
Committed: https://chromium.googlesource.com/chromium/src/+/2364c1b8adb850f0d1b1e29f16ecfd75679280d5
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address comments from vabr@ #Messages
Total messages: 25 (13 generated)
|