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

Unified Diff: ios/chrome/browser/sync/sync_setup_service.cc

Issue 1582183004: [Sync] Only pass user-selectable types to OnUserChoseDataTypes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Intersect with UserSelectableTypes before passing into OnUserChoseDatatypes Created 4 years, 11 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: ios/chrome/browser/sync/sync_setup_service.cc
diff --git a/ios/chrome/browser/sync/sync_setup_service.cc b/ios/chrome/browser/sync/sync_setup_service.cc
index bdef1e78e0ec65a45bf90c34f984cdee59b57947..3761b3340ae5f198e5b0e6cb6fb76bc123a392d0 100644
--- a/ios/chrome/browser/sync/sync_setup_service.cc
+++ b/ios/chrome/browser/sync/sync_setup_service.cc
@@ -103,7 +103,8 @@ void SyncSetupService::SetSyncingAllDataTypes(bool sync_all) {
sync_service_->SetSetupInProgress(true);
if (sync_all && !IsSyncEnabled())
SetSyncEnabled(true);
- sync_service_->OnUserChoseDatatypes(sync_all, GetDataTypes());
+ sync_service_->OnUserChoseDatatypes(
+ sync_all, Intersection(GetDataTypes(), syncer::UserSelectableTypes()));
}
bool SyncSetupService::IsSyncEnabled() const {
« 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