Commit ab0f182e authored by Nikunj Bhagat's avatar Nikunj Bhagat Committed by Commit Bot

Add user actions for autofill settings.

Bug: 904459
Change-Id: I3ab7093cb1d7eab93e5db8bc1ca6b7fa7d6ebcef
Reviewed-on: https://chromium-review.googlesource.com/c/1331629
Commit-Queue: Nik Bhagat <nikunjb@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607692}
parent 0c5f58ab
......@@ -8,6 +8,7 @@
#include <utility>
#include "base/guid.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
......@@ -369,7 +370,7 @@ ExtensionFunction::ResponseAction AutofillPrivateGetAddressListFunction::Run() {
autofill_util::AddressEntryList address_list =
autofill_util::GenerateAddressList(*personal_data);
base::RecordAction(base::UserMetricsAction("AutofillAddressesViewed"));
return RespondNow(ArgumentList(
api::autofill_private::GetAddressList::Results::Create(address_list)));
}
......@@ -537,7 +538,7 @@ AutofillPrivateGetCreditCardListFunction::Run() {
autofill_util::CreditCardEntryList credit_card_list =
autofill_util::GenerateCreditCardList(*personal_data);
base::RecordAction(base::UserMetricsAction("AutofillCreditCardsViewed"));
return RespondNow(
ArgumentList(api::autofill_private::GetCreditCardList::Results::Create(
credit_card_list)));
......
......@@ -2340,6 +2340,22 @@ should be able to be added at any place in this file.
</description>
</action>
<action name="AutofillAddressesViewed">
<owner>nikunjb@chromium.org</owner>
<owner>sebsg@chromium.org</owner>
<description>
Recorded when user visits chrome://settings/autofill page.
</description>
</action>
<action name="AutofillCreditCardsViewed">
<owner>nikunjb@chromium.org</owner>
<owner>sebsg@chromium.org</owner>
<description>
Recorded when user visits chrome://settings/payments page.
</description>
</action>
<action name="AutomaticReset_WebUIBanner_BannerShown">
<owner>Please list the metric's owners. Add more owner tags as needed.</owner>
<description>Please enter the description of this user action.</description>
......
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