mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1008645 - Add UI telemetry for First-run r=bnicholson
This commit is contained in:
parent
d4acd238c9
commit
38fadc8622
@ -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);
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user