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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java

Issue 946273002: Added isSyncingUrlsWithKeystorePassphrase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a79c6fa28be97a7d19c768756b0e8b926a65ea9d..75d03dbac9c93164d00013358beec443448388a7 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
@@ -542,6 +542,15 @@ public class ProfileSyncService {
return sb.toString();
}
+ /**
+ * @return Whether sync is enabled to sync urls or open tabs with a non custom passphrase.
+ */
+ public boolean isSyncingUrlsWithKeystorePassphrase() {
+ return isSyncInitialized()
+ && getPreferredDataTypes().contains(ModelType.TYPED_URL)
+ && getPassphraseType().equals(PassphraseType.KEYSTORE_PASSPHRASE);
+ }
+
// Native methods
private native long nativeInit();
private native void nativeEnableSync(long nativeProfileSyncServiceAndroid);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698