Bug 1324051 - Add highlights histogram telemetry r=Grisha

MozReview-Commit-ID: 92m8jYS8b8D

--HG--
extra : rebase_source : 7056ef9bc68c6bfb9c56f64f6c51be65a1419ed4
This commit is contained in:
Andrzej Hunt 2016-12-16 10:42:04 -08:00
Родитель 0d8837ac7f
Коммит 3228e94e88
2 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -110,6 +110,7 @@ public class LocalBrowserDB extends BrowserDB {
public static final String HISTORY_VISITS_URL = "url";
private static final String TELEMETRY_HISTOGRAM_ACTIVITY_STREAM_TOPSITES = "FENNEC_ACTIVITY_STREAM_TOPSITES_LOADER_TIME_MS";
private static final String TELEMETRY_HISTOGRAM_ACTIVITY_STREAM_HIGHLIGHTS = "FENNEC_ACTIVITY_STREAM_HIGHLIGHTS_LOADER_TIME_MS";
private final Uri mBookmarksUriWithProfile;
private final Uri mParentsUriWithProfile;
@ -1979,7 +1980,8 @@ public class LocalBrowserDB extends BrowserDB {
.appendQueryParameter(BrowserContract.PARAM_LIMIT, String.valueOf(limit))
.build();
return new CursorLoader(context, uri, null, null, null, null);
return new TelemetrisedCursorLoader(context, uri, null, null, null, null,
TELEMETRY_HISTOGRAM_ACTIVITY_STREAM_HIGHLIGHTS);
}
@Override

Просмотреть файл

@ -6308,6 +6308,17 @@
"bug_numbers": [1293790],
"cpp_guard": "ANDROID"
},
"FENNEC_ACTIVITY_STREAM_HIGHLIGHTS_LOADER_TIME_MS": {
"expires_in_version": "never",
"kind": "exponential",
"low": 10,
"high": 20000,
"n_buckets": 20,
"description": "Time for the Activity Stream highlights query to return (ms)",
"alert_emails": ["mobile-frontend@mozilla.com"],
"bug_numbers": [1298786],
"cpp_guard": "ANDROID"
},
"FENNEC_HOMEPANELS_CUSTOM": {
"expires_in_version": "54",
"kind": "boolean",