Commit 9dd3e61d authored by maxbogue's avatar maxbogue Committed by Commit bot

[Sync] Fix PSS.getPreferredDataTypes()

Part 3/3. Once any downstream uses that really wanted the
getActiveDataTypes() behavior are converted in 2/3, this CL can fix
getPreferredDataTypes().

BUG=466223

Review URL: https://codereview.chromium.org/1019733002

Cr-Commit-Position: refs/heads/master@{#321620}
parent ad47a949
......@@ -336,9 +336,7 @@ public class ProfileSyncService {
* @return Set of preferred types.
*/
public Set<ModelType> getPreferredDataTypes() {
// TODO(maxbogue): Correct this line to GetPreferredDataTypes once
// downstream uses are fixed.
long modelTypeSelection = nativeGetActiveDataTypes(mNativeProfileSyncServiceAndroid);
long modelTypeSelection = nativeGetPreferredDataTypes(mNativeProfileSyncServiceAndroid);
return modelTypeSelectionToSet(modelTypeSelection);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment