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

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

Issue 1057643002: Add PSS.getActiveDataTypes(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
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/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 2b2f34e22067c9065c50265cc0a9b3bdb4700532..5295d221bebb1e7891bb08eeeb0b59afd59a8f86 100644
--- a/chrome/browser/sync/profile_sync_service_android.h
+++ b/chrome/browser/sync/profile_sync_service_android.h
@@ -137,11 +137,17 @@ 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.
+ // Get the set of active data types. These are the types currently being
+ // synced. 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);
+ jlong GetActiveDataTypes(JNIEnv* env, jobject obj);
+
+ // Get the set of preferred data types. These are the types that the user
+ // has requested be synced.
+ // Returns a bit map of the values from
+ // profile_sync_service_model_type_selection_android.h.
+ jlong GetPreferredDataTypes(JNIEnv* env, jobject obj);
// Enables the passed data types.
// If |sync_everything| is true, then all data types are enabled and the

Powered by Google App Engine
This is Rietveld 408576698