Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java

Issue 978913004: Add auto sign in slider in Clank settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
index 57df391dc04b5f57ddb2bd2dcc541c0b2cd37a86..592b02fbe8aee7baaad855174dcaed044b048549 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
@@ -188,6 +188,10 @@ public final class PrefServiceBridge {
return nativeGetRememberPasswordsEnabled();
}
+ public boolean isPasswordManagerAutoSigninEnabled() {
+ return nativeGetPasswordManagerAutoSigninEnabled();
+ }
+
/**
* @return whether password storage is configured by policy
*/
@@ -195,6 +199,10 @@ public final class PrefServiceBridge {
return nativeGetRememberPasswordsManaged();
}
+ public boolean isPasswordManagerAutoSigninManaged() {
+ return nativeGetPasswordManagerAutoSigninManaged();
+ }
+
/**
* @return whether push notifications are enabled.
*/
@@ -535,6 +543,10 @@ public final class PrefServiceBridge {
nativeSetRememberPasswordsEnabled(allow);
}
+ public void setPasswordManagerAutoSigninEnabled(boolean enabled) {
+ nativeSetPasswordManagerAutoSigninEnabled(enabled);
+ }
+
public void setPushNotificationsEnabled(boolean allow) {
nativeSetPushNotificationsEnabled(allow);
}
@@ -766,7 +778,9 @@ public final class PrefServiceBridge {
private native boolean nativeGetBlockThirdPartyCookiesEnabled();
private native boolean nativeGetBlockThirdPartyCookiesManaged();
private native boolean nativeGetRememberPasswordsEnabled();
+ private native boolean nativeGetPasswordManagerAutoSigninEnabled();
private native boolean nativeGetRememberPasswordsManaged();
+ private native boolean nativeGetPasswordManagerAutoSigninManaged();
private native boolean nativeGetAllowLocationUserModifiable();
private native boolean nativeGetAllowLocationManagedByCustodian();
private native boolean nativeGetDoNotTrackEnabled();
@@ -799,6 +813,7 @@ public final class PrefServiceBridge {
private native void nativeSetBlockThirdPartyCookiesEnabled(boolean enabled);
private native void nativeSetDoNotTrackEnabled(boolean enabled);
private native void nativeSetRememberPasswordsEnabled(boolean allow);
+ private native void nativeSetPasswordManagerAutoSigninEnabled(boolean enabled);
private native void nativeSetProtectedMediaIdentifierEnabled(boolean enabled);
private native boolean nativeGetAllowLocationEnabled();
private native boolean nativeGetPushNotificationsEnabled();

Powered by Google App Engine
This is Rietveld 408576698