From 53f8320ad2224e332317bdd825f3cd711e33f545 Mon Sep 17 00:00:00 2001 From: Nevin Chen Date: Thu, 29 Jun 2017 14:36:51 -0700 Subject: [PATCH] Bug 1377022 - rename track() to event(). r=maliu MozReview-Commit-ID: 4z8pWnZ1ss0 --HG-- extra : rebase_source : a6f2b31e03e77c1c1b66ffe53acea94f38099e80 --- .../base/java/org/mozilla/gecko/mma/MmaDelegate.java | 6 +++--- .../base/java/org/mozilla/gecko/mma/MmaInterface.java | 5 ++--- .../base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java | 4 ++-- .../android/base/java/org/mozilla/gecko/mma/MmaStubImp.java | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java b/mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java index f319e1370524..faf6c00c20e2 100644 --- a/mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java +++ b/mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java @@ -64,7 +64,7 @@ public class MmaDelegate { if (value) { mmaHelper.init(activity); if (!isDefaultBrowser(activity)) { - mmaHelper.track(MmaDelegate.LAUNCH_BUT_NOT_DEFAULT_BROWSER); + mmaHelper.event(MmaDelegate.LAUNCH_BUT_NOT_DEFAULT_BROWSER); } isGeckoPrefOn = true; } else { @@ -79,13 +79,13 @@ public class MmaDelegate { public static void track(String event) { if (isMmaEnabled()) { - mmaHelper.track(event); + mmaHelper.event(event); } } public static void track(String event, long value) { if (isMmaEnabled()) { - mmaHelper.track(event, value); + mmaHelper.event(event, value); } } diff --git a/mobile/android/base/java/org/mozilla/gecko/mma/MmaInterface.java b/mobile/android/base/java/org/mozilla/gecko/mma/MmaInterface.java index 6d8e62a8a244..4333399adb18 100644 --- a/mobile/android/base/java/org/mozilla/gecko/mma/MmaInterface.java +++ b/mobile/android/base/java/org/mozilla/gecko/mma/MmaInterface.java @@ -7,7 +7,6 @@ package org.mozilla.gecko.mma; import android.app.Activity; -import android.app.Application; import android.content.Context; @@ -16,9 +15,9 @@ public interface MmaInterface { void start(Context context); - void track(String mmaEvent); + void event(String mmaEvent); - void track(String mmaEvent, double value); + void event(String mmaEvent, double value); void stop(); } diff --git a/mobile/android/base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java b/mobile/android/base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java index aa66e62236ec..95388402e8da 100644 --- a/mobile/android/base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java +++ b/mobile/android/base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java @@ -82,13 +82,13 @@ public class MmaLeanplumImp implements MmaInterface { } @Override - public void track(String leanplumEvent) { + public void event(String leanplumEvent) { Leanplum.track(leanplumEvent); } @Override - public void track(String leanplumEvent, double value) { + public void event(String leanplumEvent, double value) { Leanplum.track(leanplumEvent, value); } diff --git a/mobile/android/base/java/org/mozilla/gecko/mma/MmaStubImp.java b/mobile/android/base/java/org/mozilla/gecko/mma/MmaStubImp.java index a4252075694f..8f4bb727a3ba 100644 --- a/mobile/android/base/java/org/mozilla/gecko/mma/MmaStubImp.java +++ b/mobile/android/base/java/org/mozilla/gecko/mma/MmaStubImp.java @@ -23,12 +23,12 @@ public class MmaStubImp implements MmaInterface { } @Override - public void track(String leanplumEvent) { + public void event(String leanplumEvent) { } @Override - public void track(String leanplumEvent, double value) { + public void event(String leanplumEvent, double value) { }