Commit ffea1ac9 authored by Michael Bai's avatar Michael Bai Committed by Chromium LUCI CQ

Autofill: Add log about prediction availability when autofill starts

This will help test team to verify if the feature is enabled or not.

Bug: 1169367
Change-Id: I1d731b00c30080a9f3d37ddce36ab642140990c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643705Reviewed-by: default avatarMichael Bai <michaelbai@chromium.org>
Reviewed-by: default avatarShimi Zhang <ctzsm@chromium.org>
Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Commit-Queue: Michael Bai <michaelbai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846197}
parent 00bfbc64
......@@ -540,7 +540,7 @@ public class AwAutofillTest {
}
@Override
public void notifyNewSessionStarted() {
public void notifyNewSessionStarted(boolean hasServerPrediction) {
if (DEBUG) Log.i(TAG, "notifyNewSessionStarted");
mEventQueue.add(AUTOFILL_SESSION_STARTED);
mCallbackHelper.notifyCalled();
......
......@@ -190,9 +190,9 @@ public class AutofillManagerWrapper {
}
}
public void notifyNewSessionStarted() {
public void notifyNewSessionStarted(boolean hasServerPrediction) {
updateLogStat();
if (isLoggable()) log("Session starts");
if (isLoggable()) log("Session starts, has server prediction = " + hasServerPrediction);
}
public void onQueryDone(boolean success) {
......
......@@ -450,7 +450,7 @@ public class AutofillProvider {
}
mAutofillTriggeredTimeMillis = System.currentTimeMillis();
mAutofillManager.notifyNewSessionStarted();
mAutofillManager.notifyNewSessionStarted(hasServerPrediction);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment