mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1301468 - Add telemetry to AS context menu (following the pattern of existing probes). r=ahunt
MozReview-Commit-ID: 91E0c9rPSbB --HG-- extra : rebase_source : ca96399cc2c442113415639f082c47f15c61658b
This commit is contained in:
parent
08059cfec8
commit
600414d90f
@ -142,7 +142,8 @@ public abstract class ActivityStreamContextMenu
|
||||
public boolean onNavigationItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.share:
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.SHARE, TelemetryContract.Method.LIST, "menu");
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.SHARE, TelemetryContract.Method.LIST, "as_contextmenu");
|
||||
|
||||
IntentHelper.openUriExternal(url, "text/plain", "", "", Intent.ACTION_SEND, title, false);
|
||||
break;
|
||||
|
||||
@ -172,10 +173,14 @@ public abstract class ActivityStreamContextMenu
|
||||
|
||||
case R.id.open_new_tab:
|
||||
onUrlOpenInBackgroundListener.onUrlOpenInBackground(url, EnumSet.noneOf(HomePager.OnUrlOpenInBackgroundListener.Flags.class));
|
||||
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, TelemetryContract.Method.CONTEXT_MENU, "as_new_tab");
|
||||
break;
|
||||
|
||||
case R.id.open_new_private_tab:
|
||||
onUrlOpenInBackgroundListener.onUrlOpenInBackground(url, EnumSet.of(HomePager.OnUrlOpenInBackgroundListener.Flags.PRIVATE));
|
||||
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, TelemetryContract.Method.CONTEXT_MENU, "as_private_tab");
|
||||
break;
|
||||
|
||||
case R.id.dismiss:
|
||||
|
Loading…
Reference in New Issue
Block a user