32 lines
1.9 KiB
Diff
32 lines
1.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Sun, 13 Aug 2017 19:33:04 -0400
|
|
Subject: [PATCH] hide passwords.google.com link when not supported
|
|
|
|
---
|
|
.../browser/password_manager/settings/PasswordSettings.java | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java b/chrome/android/java/src/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java
|
|
index 118c5ec8d81e2..ef010a06ef2e6 100644
|
|
--- a/chrome/android/java/src/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java
|
|
+++ b/chrome/android/java/src/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java
|
|
@@ -40,6 +40,7 @@ import org.chromium.chrome.browser.preferences.Pref;
|
|
import org.chromium.chrome.browser.settings.ChromeBaseSettingsFragment;
|
|
import org.chromium.chrome.browser.settings.ChromeManagedPreferenceDelegate;
|
|
import org.chromium.chrome.browser.settings.SettingsLauncherImpl;
|
|
+import org.chromium.chrome.browser.signin.services.IdentityServicesProvider;
|
|
import org.chromium.chrome.browser.sync.SyncServiceFactory;
|
|
import org.chromium.chrome.browser.sync.settings.SyncSettingsUtils;
|
|
import org.chromium.components.browser_ui.bottomsheet.BottomSheetController;
|
|
@@ -633,6 +634,9 @@ public class PasswordSettings extends ChromeBaseSettingsFragment
|
|
if (mSearchQuery != null && !mNoPasswords) {
|
|
return; // Don't add the Manage Account link if there is a search going on.
|
|
}
|
|
+ if (!IdentityServicesProvider.get().getSigninManager(getProfile()).isSigninSupported(false)) {
|
|
+ return;
|
|
+ }
|
|
if (getPreferenceScreen().findPreference(PREF_KEY_MANAGE_ACCOUNT_LINK) != null) {
|
|
return; // Don't add the Manage Account link if it's present.
|
|
}
|