зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1384480 - Move MMA event to UI code. r=sebastian
MozReview-Commit-ID: FzrLqWVFWO0 --HG-- extra : rebase_source : 94ef3ff6836169b055fcfca30af6f05da5a217f1
This commit is contained in:
Родитель
776efb00ca
Коммит
e25c370e79
|
@ -181,6 +181,8 @@ import java.util.List;
|
|||
import java.util.Locale;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import static org.mozilla.gecko.mma.MmaDelegate.NEW_TAB;
|
||||
|
||||
public class BrowserApp extends GeckoApp
|
||||
implements ActionModePresenter,
|
||||
AnchoredPopup.OnVisibilityChangeListener,
|
||||
|
@ -2184,6 +2186,7 @@ public class BrowserApp extends GeckoApp
|
|||
|
||||
@Override
|
||||
public void addTab() {
|
||||
MmaDelegate.track(NEW_TAB);
|
||||
Tabs.getInstance().addTab();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ import org.mozilla.gecko.annotation.RobocopTarget;
|
|||
import org.mozilla.gecko.db.BrowserDB;
|
||||
import org.mozilla.gecko.distribution.PartnerBrowserCustomizationsClient;
|
||||
import org.mozilla.gecko.gfx.LayerView;
|
||||
import org.mozilla.gecko.mma.MmaDelegate;
|
||||
import org.mozilla.gecko.mozglue.SafeIntent;
|
||||
import org.mozilla.gecko.notifications.WhatsNewReceiver;
|
||||
import org.mozilla.gecko.preferences.GeckoPreferences;
|
||||
|
@ -51,8 +50,6 @@ import android.support.v4.content.ContextCompat;
|
|||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import static org.mozilla.gecko.mma.MmaDelegate.NEW_TAB;
|
||||
|
||||
|
||||
public class Tabs implements BundleEventListener {
|
||||
private static final String LOGTAG = "GeckoTabs";
|
||||
|
@ -1052,7 +1049,6 @@ public class Tabs implements BundleEventListener {
|
|||
* the user's homepage.
|
||||
*/
|
||||
public Tab addTab() {
|
||||
MmaDelegate.track(NEW_TAB);
|
||||
return loadUrl(getHomepageForNewTab(mAppContext), Tabs.LOADURL_NEW_TAB);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,9 +21,12 @@ import org.mozilla.gecko.BrowserApp.TabStripInterface;
|
|||
import org.mozilla.gecko.R;
|
||||
import org.mozilla.gecko.Tab;
|
||||
import org.mozilla.gecko.Tabs;
|
||||
import org.mozilla.gecko.mma.MmaDelegate;
|
||||
import org.mozilla.gecko.widget.themed.ThemedImageButton;
|
||||
import org.mozilla.gecko.widget.themed.ThemedLinearLayout;
|
||||
|
||||
import static org.mozilla.gecko.mma.MmaDelegate.NEW_TAB;
|
||||
|
||||
|
||||
public class TabStrip extends ThemedLinearLayout
|
||||
implements TabStripInterface {
|
||||
|
@ -58,6 +61,7 @@ public class TabStrip extends ThemedLinearLayout
|
|||
if (isPrivateMode()) {
|
||||
tabs.addPrivateTab();
|
||||
} else {
|
||||
MmaDelegate.track(NEW_TAB);
|
||||
tabs.addTab();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче