Bug 1017633 - Update "Clear history" dialog button and add telemetry. r=mfinkle

This commit is contained in:
Margaret Leibovic 2014-05-29 18:15:18 -07:00
parent 83d6b8f6eb
commit f64445b614
2 changed files with 4 additions and 2 deletions

View File

@ -150,7 +150,7 @@ public class MostRecentPanel extends HomeFragment {
}
});
dialogBuilder.setPositiveButton(R.string.button_yes, new AlertDialog.OnClickListener() {
dialogBuilder.setPositiveButton(R.string.button_ok, new AlertDialog.OnClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int which) {
dialog.dismiss();
@ -161,6 +161,8 @@ public class MostRecentPanel extends HomeFragment {
BrowserDB.clearHistory(cr);
}
});
Telemetry.sendUIEvent(TelemetryContract.Event.SANITIZE, TelemetryContract.Method.BUTTON, "history");
}
});

View File

@ -32,7 +32,7 @@ class PrivateDataPreference extends MultiChoicePreference {
if (!positiveResult)
return;
Telemetry.sendUIEvent(TelemetryContract.Event.SANITIZE, TelemetryContract.Method.DIALOG);
Telemetry.sendUIEvent(TelemetryContract.Event.SANITIZE, TelemetryContract.Method.DIALOG, "settings");
CharSequence keys[] = getEntryKeys();
boolean values[] = getValues();