Commit 9ca3c00c authored by Nikunj Bhagat's avatar Nikunj Bhagat Committed by Commit Bot

Add Useractions for Autofill settings for Android

Bug: 904459
Change-Id: I2eee7eb9d0aa8ef432782d43f55e3c3f073a7b1f
Reviewed-on: https://chromium-review.googlesource.com/c/1347269Reviewed-by: default avatarJared Saul <jsaul@google.com>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Nik Bhagat <nikunjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610933}
parent 10f9fc51
......@@ -12,6 +12,7 @@ import android.os.Bundle;
import android.support.annotation.Nullable;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.metrics.RecordUserAction;
import org.chromium.chrome.browser.AppHooks;
import org.chromium.chrome.browser.preferences.autofill.AutofillPaymentMethodsFragment;
import org.chromium.chrome.browser.preferences.autofill.AutofillProfilesFragment;
......@@ -101,11 +102,13 @@ public class PreferencesLauncher {
@CalledByNative
private static void showAutofillProfileSettings(WebContents webContents) {
RecordUserAction.record("AutofillAddressesViewed");
showSettingSubpage(webContents, AutofillProfilesFragment.class);
}
@CalledByNative
private static void showAutofillCreditCardSettings(WebContents webContents) {
RecordUserAction.record("AutofillCreditCardsViewed");
showSettingSubpage(webContents, AutofillPaymentMethodsFragment.class);
}
......
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