Bug 1119104 - add a migration=sync11 query param when about:accounts is opened via migration flow. r=adw

This commit is contained in:
Mark Hammond 2015-01-09 09:53:34 +11:00
parent 1f55f4f7c4
commit 8e07623409

View File

@ -387,6 +387,8 @@ Migrator.prototype = {
// See if we can find a default account name to use. // See if we can find a default account name to use.
let email = yield this._getDefaultAccountName(sentinel); let email = yield this._getDefaultAccountName(sentinel);
let tail = email ? "&email=" + encodeURIComponent(email) : ""; let tail = email ? "&email=" + encodeURIComponent(email) : "";
// A special flag so server-side metrics can tell this is part of migration.
tail += "&migration=sync11";
// We want to ask FxA to offer a "Customize Sync" checkbox iff any engines // We want to ask FxA to offer a "Customize Sync" checkbox iff any engines
// are disabled. // are disabled.
let customize = !this._allEnginesEnabled(); let customize = !this._allEnginesEnabled();