зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1258472 - 1. Start first-run telemetry session outside of GeckoProfile; r=nalexander
Move the first-run telemetry session from GeckoProfile to BrowserApp, so there is no longer any dependency on Telemetry from inside GeckoProfile.
This commit is contained in:
Родитель
f6ee6d53f2
Коммит
dd14f982bb
|
@ -933,8 +933,14 @@ public class BrowserApp extends GeckoApp
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't bother trying again to show the v1 minimal first run.
|
// Don't bother trying again to show the v1 minimal first run.
|
||||||
prefs.edit().putBoolean(FirstrunAnimationContainer.PREF_FIRSTRUN_ENABLED, false).apply();
|
prefs.edit().putBoolean(FirstrunAnimationContainer.PREF_FIRSTRUN_ENABLED, false).apply();
|
||||||
|
|
||||||
|
// 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);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
StrictMode.setThreadPolicy(savedPolicy);
|
StrictMode.setThreadPolicy(savedPolicy);
|
||||||
|
|
|
@ -938,11 +938,6 @@ public final class GeckoProfile {
|
||||||
if (!isDefaultSet) {
|
if (!isDefaultSet) {
|
||||||
// only set as default if this is the first profile we're creating
|
// only set as default if this is the first profile we're creating
|
||||||
profileSection.setProperty("Default", 1);
|
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);
|
parser.addSection(profileSection);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче