Bug 1267837 - Update grid item telemetry to indicate whether an item is pinned. r=mfinkle a=ritu

MozReview-Commit-ID: 9Et4AhCzAr9
This commit is contained in:
Margaret Leibovic 2016-05-11 11:40:49 -04:00
parent b7c71e4f10
commit fdf500eede

View File

@ -215,7 +215,13 @@ public class TopSitesPanel extends HomeFragment {
} else {
method = TelemetryContract.Method.GRID_ITEM;
}
Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, method, Integer.toString(position));
String extra = Integer.toString(position);
if (type == TopSites.TYPE_PINNED) {
extra += "-pinned";
}
Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, method, extra);
mUrlOpenListener.onUrlOpen(url, EnumSet.noneOf(OnUrlOpenListener.Flags.class));
}