Bug 1018432 - Add telemetry for "+" button in tabs tray. r=mfinkle

This commit is contained in:
Margaret Leibovic 2014-06-19 08:37:33 -04:00
parent f9d4fa0ba8
commit 0ee89f0163

View File

@ -182,11 +182,13 @@ public class TabsPanel extends LinearLayout
mPopupMenu.setAnchor(mMenuButton);
}
public void addTab() {
private void addTab() {
if (mCurrentPanel == Panel.NORMAL_TABS) {
mActivity.addTab();
Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.ACTIONBAR, "new_tab");
mActivity.addTab();
} else {
mActivity.addPrivateTab();
Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.ACTIONBAR, "new_private_tab");
mActivity.addPrivateTab();
}
mActivity.autoHideTabs();