Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e112735 authored by Daniel's avatar Daniel
Browse files

Add metric logging for webview for V

Add metric logging for webview for when the view contains credman
request.

Bug: 327631801
Test: minor refactor
Change-Id: I909c35e2ac0d49c9cd6c412dd915265f8013ea57
parent e54bdfb4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -611,6 +611,12 @@ class CredentialAutofillService : AutofillService() {
            sessionId: Int
    ) {
        viewNode.autofillId?.let {
            val domain = viewNode.webDomain
            val request = viewNode.credentialManagerRequest
            if (domain != null && request != null) {
                responseClientState.putBoolean(
                    WEBVIEW_REQUESTED_CREDENTIAL_KEY, true)
            }
            cmRequests.addAll(getCredentialOptionsFromViewNode(viewNode, it, responseClientState,
                traversedViewNodes, credentialOptionsFromHints, sessionId))
            traversedViewNodes.add(it)