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 59418af6c90f6..a95af908191e4 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.password_manager.PasswordManagerHelper;
|
||
|
import org.chromium.chrome.browser.preferences.Pref;
|
||
|
import org.chromium.chrome.browser.profiles.Profile;
|
||
|
import org.chromium.chrome.browser.settings.ChromeManagedPreferenceDelegate;
|
||
|
+import org.chromium.chrome.browser.signin.services.IdentityServicesProvider;
|
||
|
import org.chromium.chrome.browser.settings.SettingsLauncherImpl;
|
||
|
import org.chromium.chrome.browser.sync.SyncService;
|
||
|
import org.chromium.chrome.browser.sync.settings.SyncSettingsUtils;
|
||
|
@@ -597,6 +598,9 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||
|
if (mSearchQuery != null && !mNoPasswords) {
|
||
|
return; // Don't add the Manage Account link if there is a search going on.
|
||
|
}
|
||
|
+ if (!IdentityServicesProvider.get().getSigninManager(Profile.getLastUsedRegularProfile()).isSigninSupported(false)) {
|
||
|
+ return;
|
||
|
+ }
|
||
|
if (getPreferenceScreen().findPreference(PREF_KEY_MANAGE_ACCOUNT_LINK) != null) {
|
||
|
return; // Don't add the Manage Account link if it's present.
|
||
|
}
|