Bug 1359495 - Expose webextension status in the multi cohorts. r=Felipe

--HG--
extra : rebase_source : d2df1d7f6c38abbc5ba02bcf6db7c345787233b9
This commit is contained in:
Blake Kaplan 2017-04-25 13:59:16 -07:00
Родитель dc4875b2e2
Коммит b6083144d9
1 изменённых файлов: 8 добавлений и 1 удалений

9
browser/extensions/e10srollout/bootstrap.js поставляемый
Просмотреть файл

@ -175,6 +175,13 @@ function defineCohort() {
return;
}
// If we got here with a cohortPrefix, it must be "addons-set50allmpc-",
// and we know because of getAddonsDisqualifyForMulti that the addons that
// are installed must be web extensions.
if (cohortPrefix) {
cohortPrefix = "webextensions-";
}
// The user is in the multi experiment!
// Decide how many content processes to use for this user.
let BUCKETS = {
@ -187,7 +194,7 @@ function defineCohort() {
let multiUserSample = getUserSample(true);
for (let sampleName of Object.getOwnPropertyNames(BUCKETS)) {
if (multiUserSample < BUCKETS[sampleName]) {
setCohort(`multiBucket${sampleName}`);
setCohort(`${cohortPrefix}multiBucket${sampleName}`);
Preferences.set(PREF_E10S_PROCESSCOUNT + ".web", sampleName);
break;
}