Bug 1004890 - Add UI telemetry for the Home Page contextmenu r=rnewman

This commit is contained in:
Mark Finkle 2014-05-02 11:00:22 -04:00
Родитель 8ac96c8ed0
Коммит 54192d1721
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -127,6 +127,11 @@ abstract class HomeFragment extends Fragment {
final Context context = getActivity();
final int itemId = item.getItemId();
// Track the menu action. We don't know much about the context, but we can use this to determine
// the frequency of use for various actions.
Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.CONTEXT_MENU, getResources().getResourceEntryName(itemId));
if (itemId == R.id.home_share) {
if (info.url == null) {
Log.e(LOGTAG, "Can't share because URL is null");