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

Unified Diff: chrome/browser/sync/profile_sync_service_android.h

Issue 13109002: [Sync] Move Android enabled types logic into native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 7 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/browser/sync/profile_sync_service_android.h
diff --git a/chrome/browser/sync/profile_sync_service_android.h b/chrome/browser/sync/profile_sync_service_android.h
index 1886b8127c06936d417344dbab606087e4860fe5..57e63d9632c98d8246519d331f915cadf65f41d0 100644
--- a/chrome/browser/sync/profile_sync_service_android.h
+++ b/chrome/browser/sync/profile_sync_service_android.h
@@ -132,6 +132,12 @@ class ProfileSyncServiceAndroid : public ProfileSyncServiceObserver {
// Returns true if sync has been migrated.
jboolean IsSyncKeystoreMigrationDone(JNIEnv* env, jobject obj);
+ // Get the set of enabled data types. These are the types currently both
+ // registered and preferred. Note that control types are always included here.
+ // Returns a bit map of the values from
+ // profile_sync_service_model_type_selection_android.h.
+ jlong GetEnabledDataTypes(JNIEnv* env, jobject obj);
+
// Enables the passed data types.
// If |sync_everything| is true, then all data types are enabled and the
// contents of |model_type_selection| is
@@ -156,21 +162,6 @@ class ProfileSyncServiceAndroid : public ProfileSyncServiceObserver {
// Returns true if sync is configured to "sync everything".
jboolean HasKeepEverythingSynced(JNIEnv* env, jobject obj);
- // Returns true if the user has autofill sync enabled.
- jboolean IsAutofillSyncEnabled(JNIEnv* env, jobject obj);
-
- // Returns true if the user has bookmark sync enabled.
- jboolean IsBookmarkSyncEnabled(JNIEnv* env, jobject obj);
-
- // Returns true if the user has password sync enabled.
- jboolean IsPasswordSyncEnabled(JNIEnv* env, jobject obj);
-
- // Returns true if the user has typed URL sync enabled.
- jboolean IsTypedUrlSyncEnabled(JNIEnv* env, jobject obj);
-
- // Returns true if the user has session sync enabled.
- jboolean IsSessionSyncEnabled(JNIEnv* env, jobject obj);
-
// Turns on encryption for all data types. This is an asynchronous operation
// which happens after the current configuration pass is done, so a call to
// this routine must be followed by a call to SetEnabledDataTypes().

Powered by Google App Engine
This is Rietveld 408576698