Bug 1376982 - Add "action" parameter to the adjust deep link r=nechen a=jcristau
authorGrigory Kruglov <gkruglov@mozilla.com>
Wed, 28 Jun 2017 19:20:10 -0400
changeset 414176 f9678179979d38200caefe0b46f78124c74e266b
parent 414175 95bd58aaf67878795cdb002b418d3a1f20e6d1b8
child 414177 9856974e03e254a3eef27e3ad874af8863360a4d
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnechen, jcristau
bugs1376982
milestone55.0
Bug 1376982 - Add "action" parameter to the adjust deep link r=nechen a=jcristau We need to open the accounts page directly to the sign-in page, instead of the default sign-up page MozReview-Commit-ID: 9uVURY9hVvt
mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
@@ -232,17 +232,17 @@ public class LauncherActivity extends Ac
     private void dispatchAccountsDeepLink(final SafeIntent safeIntent) {
         final Intent intent = new Intent(Intent.ACTION_VIEW);
 
         final Uri intentUri = safeIntent.getData();
 
         final String accountsToken = intentUri.getQueryParameter(DeepLinkContract.ACCOUNTS_TOKEN_PARAM);
         final String entryPoint = intentUri.getQueryParameter(DeepLinkContract.ACCOUNTS_ENTRYPOINT_PARAM);
 
-        String dispatchUri = AboutPages.ACCOUNTS + "?";
+        String dispatchUri = AboutPages.ACCOUNTS + "?action=signin&";
 
         // If token is missing from the deep-link, we'll still open the accounts page.
         if (accountsToken != null) {
             dispatchUri = dispatchUri.concat(DeepLinkContract.ACCOUNTS_TOKEN_PARAM + "=" + accountsToken + "&");
         }
 
         // Pass through the entrypoint.
         if (entryPoint != null) {