Bug 1119104 - add a migration=sync11 query param when about:accounts is opened via migration flow. r=adw
authorMark Hammond <mhammond@skippinet.com.au>
Fri, 09 Jan 2015 09:53:34 +1100
changeset 248724 26575d4adb94dbc4f78400f6db1484b8611f34b8
parent 248723 40b7a74be389962aa1618972f4266f8918bf3544
child 248725 61caab4a0f6aa1f02481942a8513277d172035ca
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw
bugs1119104
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1119104 - add a migration=sync11 query param when about:accounts is opened via migration flow. r=adw
services/sync/modules/FxaMigrator.jsm
--- a/services/sync/modules/FxaMigrator.jsm
+++ b/services/sync/modules/FxaMigrator.jsm
@@ -382,16 +382,18 @@ Migrator.prototype = {
       this._applySentinelPrefs(sentinel.prefs);
     }
     // If we already have a sentinel then we assume the user has previously
     // created the specified account, so just ask to sign-in.
     let action = sentinel ? "signin" : "signup";
     // See if we can find a default account name to use.
     let email = yield this._getDefaultAccountName(sentinel);
     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
     // are disabled.
     let customize = !this._allEnginesEnabled();
     tail += "&customizeSync=" + customize;
 
     win.switchToTabHavingURI("about:accounts?action=" + action + tail, true,
                              {ignoreFragment: true, replaceQueryString: true});
     // An FxA observer will fire when the user completes this, which will