| Index: chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java b/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java
|
| index 7a0a69b9ab6eeb18969cfbac587150bebb10805c..df8c885acc54a21b1161cc1e67e2c4f22f33ea44 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java
|
| @@ -316,6 +316,17 @@ public class ProfileSyncService {
|
| }
|
|
|
| /**
|
| + * Checks if encrypting all the data types is allowed.
|
| + *
|
| + * @return true if encrypting all data types is allowed, false if only passwords are allowed to
|
| + * be encrypted.
|
| + */
|
| + public boolean isEncryptEverythingAllowed() {
|
| + assert isSyncInitialized();
|
| + return nativeIsEncryptEverythingAllowed(mNativeProfileSyncServiceAndroid);
|
| + }
|
| +
|
| + /**
|
| * Checks if the all the data types are encrypted.
|
| *
|
| * @return true if all data types are encrypted, false if only passwords are encrypted.
|
| @@ -579,6 +590,7 @@ public class ProfileSyncService {
|
| private native int nativeGetAuthError(long nativeProfileSyncServiceAndroid);
|
| private native boolean nativeIsSyncInitialized(long nativeProfileSyncServiceAndroid);
|
| private native boolean nativeIsFirstSetupInProgress(long nativeProfileSyncServiceAndroid);
|
| + private native boolean nativeIsEncryptEverythingAllowed(long nativeProfileSyncServiceAndroid);
|
| private native boolean nativeIsEncryptEverythingEnabled(long nativeProfileSyncServiceAndroid);
|
| private native void nativeEnableEncryptEverything(long nativeProfileSyncServiceAndroid);
|
| private native boolean nativeIsPassphraseRequiredForDecryption(
|
|
|