Commit 9c29034d authored by Tanmoy Mollik's avatar Tanmoy Mollik Committed by Commit Bot

[Signin][Android] Use native page for Manage your Google Account

"Manage your Google Account" opens the mobile web version
of My Google via link instead of opening the Android native
version by intent. This cl changes the direct link to a smart link
which will open the native MyGoogle experience on Android.

Bug: 1000664
Change-Id: I47a1e3b5affacba73143f56e3b998a8b587b9a6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807250
Commit-Queue: Tanmoy Mollik <triploblastic@chromium.org>
Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698880}
parent 37d8458e
......@@ -38,8 +38,7 @@ import org.chromium.ui.UiUtils;
*/
public class SyncPreferenceUtils {
private static final String DASHBOARD_URL = "https://www.google.com/settings/chrome/sync";
private static final String MY_ACCOUNT_URL =
"https://accounts.google.com/AccountChooser?Email=%s&continue=https://myaccount.google.com/";
private static final String MY_ACCOUNT_URL = "https://myaccount.google.com/smartlink/home";
/**
* Checks if sync error icon should be shown. Show sync error icon if sync is off because
......@@ -233,8 +232,6 @@ public class SyncPreferenceUtils {
public static void openGoogleMyAccount(Activity activity) {
assert ChromeSigninController.get().isSignedIn();
RecordUserAction.record("SyncPreferences_ManageGoogleAccountClicked");
openCustomTabWithURL(activity,
String.format(
MY_ACCOUNT_URL, ChromeSigninController.get().getSignedInAccountName()));
openCustomTabWithURL(activity, MY_ACCOUNT_URL);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment