Bug 1008645 - Add UI telemetry for First-run r=bnicholson

This commit is contained in:
Mark Finkle 2014-05-12 18:16:51 -04:00
parent d4acd238c9
commit 38fadc8622
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,8 @@ package org.mozilla.gecko;
import org.mozilla.gecko.GeckoProfileDirectories.NoMozillaDirectoryException;
import org.mozilla.gecko.GeckoProfileDirectories.NoSuchProfileException;
import org.mozilla.gecko.Telemetry;
import org.mozilla.gecko.TelemetryContract;
import org.mozilla.gecko.util.INIParser;
import org.mozilla.gecko.util.INISection;
@ -577,6 +579,11 @@ public final class GeckoProfile {
// only set as default if this is the first non-webapp
// profile we're creating
profileSection.setProperty("Default", 1);
// We have no intention of stopping this session. The FIRSTRUN session
// ends when the browsing session/activity has ended. All events
// during firstrun will be tagged as FIRSTRUN.
Telemetry.startUISession(TelemetryContract.Session.FIRSTRUN);
}
parser.addSection(profileSection);

View File

@ -113,6 +113,9 @@ public interface TelemetryContract {
// Awesomescreen frecency search is active.
public static final String FRECENCY = "frecency.1";
// Started the very first time we believe the application has been launched.
public static final String FIRSTRUN = "firstrun.1";
}
/**