Commit 96c6156f authored by Jan Krcal's avatar Jan Krcal Committed by Commit Bot

[Profile menu] Remove obsolete user actions

This CL removes UMA user actions that have been replaced by a new
histogram since M79.

Bug: 995757
Change-Id: Iaeae4bd9125f68209a48f8a0c315eefb39b6b2b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2247729
Auto-Submit: Jan Krcal <jkrcal@chromium.org>
Reviewed-by: default avatarBrian White <bcwhite@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: Brian White <bcwhite@chromium.org>
Cr-Commit-Position: refs/heads/master@{#780069}
parent 39f0519b
...@@ -187,9 +187,6 @@ base::string16 ProfileMenuView::GetAccessibleWindowTitle() const { ...@@ -187,9 +187,6 @@ base::string16 ProfileMenuView::GetAccessibleWindowTitle() const {
void ProfileMenuView::OnManageGoogleAccountButtonClicked() { void ProfileMenuView::OnManageGoogleAccountButtonClicked() {
RecordClick(ActionableItem::kManageGoogleAccountButton); RecordClick(ActionableItem::kManageGoogleAccountButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(
base::UserMetricsAction("ProfileChooser_ManageGoogleAccountClicked"));
Profile* profile = browser()->profile(); Profile* profile = browser()->profile();
signin::IdentityManager* identity_manager = signin::IdentityManager* identity_manager =
...@@ -205,32 +202,22 @@ void ProfileMenuView::OnManageGoogleAccountButtonClicked() { ...@@ -205,32 +202,22 @@ void ProfileMenuView::OnManageGoogleAccountButtonClicked() {
void ProfileMenuView::OnPasswordsButtonClicked() { void ProfileMenuView::OnPasswordsButtonClicked() {
RecordClick(ActionableItem::kPasswordsButton); RecordClick(ActionableItem::kPasswordsButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(
base::UserMetricsAction("ProfileChooser_PasswordsClicked"));
NavigateToManagePasswordsPage( NavigateToManagePasswordsPage(
browser(), password_manager::ManagePasswordsReferrer::kProfileChooser); browser(), password_manager::ManagePasswordsReferrer::kProfileChooser);
} }
void ProfileMenuView::OnCreditCardsButtonClicked() { void ProfileMenuView::OnCreditCardsButtonClicked() {
RecordClick(ActionableItem::kCreditCardsButton); RecordClick(ActionableItem::kCreditCardsButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(base::UserMetricsAction("ProfileChooser_PaymentsClicked"));
chrome::ShowSettingsSubPage(browser(), chrome::kPaymentsSubPage); chrome::ShowSettingsSubPage(browser(), chrome::kPaymentsSubPage);
} }
void ProfileMenuView::OnAddressesButtonClicked() { void ProfileMenuView::OnAddressesButtonClicked() {
RecordClick(ActionableItem::kAddressesButton); RecordClick(ActionableItem::kAddressesButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(
base::UserMetricsAction("ProfileChooser_AddressesClicked"));
chrome::ShowSettingsSubPage(browser(), chrome::kAddressesSubPage); chrome::ShowSettingsSubPage(browser(), chrome::kAddressesSubPage);
} }
void ProfileMenuView::OnGuestProfileButtonClicked() { void ProfileMenuView::OnGuestProfileButtonClicked() {
RecordClick(ActionableItem::kGuestProfileButton); RecordClick(ActionableItem::kGuestProfileButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(base::UserMetricsAction("ProfileChooser_GuestClicked"));
PrefService* service = g_browser_process->local_state(); PrefService* service = g_browser_process->local_state();
DCHECK(service); DCHECK(service);
DCHECK(service->GetBoolean(prefs::kBrowserGuestModeEnabled)); DCHECK(service->GetBoolean(prefs::kBrowserGuestModeEnabled));
...@@ -239,8 +226,6 @@ void ProfileMenuView::OnGuestProfileButtonClicked() { ...@@ -239,8 +226,6 @@ void ProfileMenuView::OnGuestProfileButtonClicked() {
void ProfileMenuView::OnExitProfileButtonClicked() { void ProfileMenuView::OnExitProfileButtonClicked() {
RecordClick(ActionableItem::kExitProfileButton); RecordClick(ActionableItem::kExitProfileButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(base::UserMetricsAction("ProfileChooser_CloseAllClicked"));
profiles::CloseProfileWindows(browser()->profile()); profiles::CloseProfileWindows(browser()->profile());
} }
...@@ -256,9 +241,6 @@ void ProfileMenuView::OnSyncErrorButtonClicked( ...@@ -256,9 +241,6 @@ void ProfileMenuView::OnSyncErrorButtonClicked(
chrome::AttemptUserExit(); chrome::AttemptUserExit();
#else #else
RecordClick(ActionableItem::kSyncErrorButton); RecordClick(ActionableItem::kSyncErrorButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(
base::UserMetricsAction("ProfileChooser_SignInAgainClicked"));
switch (error) { switch (error) {
case sync_ui_util::MANAGED_USER_UNRECOVERABLE_ERROR: case sync_ui_util::MANAGED_USER_UNRECOVERABLE_ERROR:
chrome::ShowSettingsSubPage(browser(), chrome::kSignOutSubPage); chrome::ShowSettingsSubPage(browser(), chrome::kSignOutSubPage);
...@@ -319,8 +301,6 @@ void ProfileMenuView::OnSigninAccountButtonClicked(AccountInfo account) { ...@@ -319,8 +301,6 @@ void ProfileMenuView::OnSigninAccountButtonClicked(AccountInfo account) {
#if !defined(OS_CHROMEOS) #if !defined(OS_CHROMEOS)
void ProfileMenuView::OnSignoutButtonClicked() { void ProfileMenuView::OnSignoutButtonClicked() {
RecordClick(ActionableItem::kSignoutButton); RecordClick(ActionableItem::kSignoutButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(base::UserMetricsAction("Signin_Signout_FromUserMenu"));
Hide(); Hide();
// Sign out from all accounts. // Sign out from all accounts.
browser()->signin_view_controller()->ShowGaiaLogoutTab( browser()->signin_view_controller()->ShowGaiaLogoutTab(
...@@ -339,8 +319,6 @@ void ProfileMenuView::OnSigninButtonClicked() { ...@@ -339,8 +319,6 @@ void ProfileMenuView::OnSigninButtonClicked() {
void ProfileMenuView::OnOtherProfileSelected( void ProfileMenuView::OnOtherProfileSelected(
const base::FilePath& profile_path) { const base::FilePath& profile_path) {
RecordClick(ActionableItem::kOtherProfileButton); RecordClick(ActionableItem::kOtherProfileButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(base::UserMetricsAction("ProfileChooser_ProfileClicked"));
Hide(); Hide();
profiles::SwitchToProfile(profile_path, /*always_create=*/false, profiles::SwitchToProfile(profile_path, /*always_create=*/false,
ProfileManager::CreateCallback()); ProfileManager::CreateCallback());
...@@ -354,8 +332,6 @@ void ProfileMenuView::OnAddNewProfileButtonClicked() { ...@@ -354,8 +332,6 @@ void ProfileMenuView::OnAddNewProfileButtonClicked() {
void ProfileMenuView::OnManageProfilesButtonClicked() { void ProfileMenuView::OnManageProfilesButtonClicked() {
RecordClick(ActionableItem::kManageProfilesButton); RecordClick(ActionableItem::kManageProfilesButton);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(base::UserMetricsAction("ProfileChooser_ManageClicked"));
UserManager::Show(base::FilePath(), UserManager::Show(base::FilePath(),
profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION); profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION);
} }
...@@ -368,9 +344,6 @@ void ProfileMenuView::OnEditProfileButtonClicked() { ...@@ -368,9 +344,6 @@ void ProfileMenuView::OnEditProfileButtonClicked() {
void ProfileMenuView::OnCookiesClearedOnExitLinkClicked() { void ProfileMenuView::OnCookiesClearedOnExitLinkClicked() {
RecordClick(ActionableItem::kCookiesClearedOnExitLink); RecordClick(ActionableItem::kCookiesClearedOnExitLink);
// TODO(crbug.com/995757): Remove user action.
base::RecordAction(
base::UserMetricsAction("ProfileChooser_CookieSettingsClicked"));
chrome::ShowSettingsSubPage(browser(), chrome::kContentSettingsSubPage + chrome::ShowSettingsSubPage(browser(), chrome::kContentSettingsSubPage +
std::string("/") + std::string("/") +
chrome::kCookieSettingsSubPage); chrome::kCookieSettingsSubPage);
......
...@@ -18894,6 +18894,7 @@ should be able to be added at any place in this file. ...@@ -18894,6 +18894,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_AddressesClicked"> <action name="ProfileChooser_AddressesClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18902,6 +18903,7 @@ should be able to be added at any place in this file. ...@@ -18902,6 +18903,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_CloseAllClicked"> <action name="ProfileChooser_CloseAllClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18910,6 +18912,7 @@ should be able to be added at any place in this file. ...@@ -18910,6 +18912,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_CookieSettingsClicked"> <action name="ProfileChooser_CookieSettingsClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>msalama@chromium.org</owner> <owner>msalama@chromium.org</owner>
<description> <description>
User clicked on settings from the user menu prompted message to go to cookie User clicked on settings from the user menu prompted message to go to cookie
...@@ -18919,6 +18922,7 @@ should be able to be added at any place in this file. ...@@ -18919,6 +18922,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_GuestClicked"> <action name="ProfileChooser_GuestClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18927,6 +18931,7 @@ should be able to be added at any place in this file. ...@@ -18927,6 +18931,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_ManageClicked"> <action name="ProfileChooser_ManageClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18935,6 +18940,7 @@ should be able to be added at any place in this file. ...@@ -18935,6 +18940,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_ManageGoogleAccountClicked"> <action name="ProfileChooser_ManageGoogleAccountClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>droger@chromium.org</owner> <owner>droger@chromium.org</owner>
<owner>msarda@chromium.org</owner> <owner>msarda@chromium.org</owner>
<owner>tangltom@chromium.org</owner> <owner>tangltom@chromium.org</owner>
...@@ -18944,6 +18950,7 @@ should be able to be added at any place in this file. ...@@ -18944,6 +18950,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_PasswordsClicked"> <action name="ProfileChooser_PasswordsClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18952,6 +18959,7 @@ should be able to be added at any place in this file. ...@@ -18952,6 +18959,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_PaymentsClicked"> <action name="ProfileChooser_PaymentsClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18960,6 +18968,7 @@ should be able to be added at any place in this file. ...@@ -18960,6 +18968,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_ProfileClicked"> <action name="ProfileChooser_ProfileClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -18975,6 +18984,7 @@ should be able to be added at any place in this file. ...@@ -18975,6 +18984,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="ProfileChooser_SignInAgainClicked"> <action name="ProfileChooser_SignInAgainClicked">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>vasilii@chromium.org</owner> <owner>vasilii@chromium.org</owner>
<owner>ewald@chromium.org</owner> <owner>ewald@chromium.org</owner>
<description> <description>
...@@ -21991,6 +22001,7 @@ should be able to be added at any place in this file. ...@@ -21991,6 +22001,7 @@ should be able to be added at any place in this file.
</action> </action>
<action name="Signin_Signout_FromUserMenu"> <action name="Signin_Signout_FromUserMenu">
<obsolete>Removed since M85, replaced by a histogram.</obsolete>
<owner>droger@chromium.org</owner> <owner>droger@chromium.org</owner>
<owner>msarda@chromium.org</owner> <owner>msarda@chromium.org</owner>
<owner>tangltom@chromium.org</owner> <owner>tangltom@chromium.org</owner>
......
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