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

Issue 1582183004: [Sync] Only pass user-selectable types to OnUserChoseDataTypes (Closed)

Created:
4 years, 11 months ago by Jackie Quinn
Modified:
4 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Only pass user-selectable types to OnUserChoseDataTypes DCHECK in ProfileSyncService::OnUserChoseDataTypes was being triggered when the user switches "Sync Everything" on or off on the Account Sync settings page because GetDataTypes() returns non user-selectable types and was being passed into OnUserChoseDataTypes as chosen_types. Intersecting with syncer::UserSelectableTypes to avoid this issue. BUG=542935 Committed: https://crrev.com/a6e131b465246f71d7375a51ddefbc48a55fc984 Cr-Commit-Position: refs/heads/master@{#370234}

Patch Set 1 #

Patch Set 2 : Intersect with UserSelectableTypes before passing into OnUserChoseDatatypes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M ios/chrome/browser/sync/sync_setup_service.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (10 generated)
Jackie Quinn
Hi David, We're hitting this DCHECK when switching on and off "Sync Everything." Continuing execution ...
4 years, 11 months ago (2016-01-14 22:05:48 UTC) #2
droger
I don't really know about this. +zea
4 years, 11 months ago (2016-01-15 10:07:51 UTC) #4
maxbogue
Could you do the intersection with syncer::UserSelectableTypes() before calling OnUserChoseDatatypes() instead of removing the DCHECK? ...
4 years, 11 months ago (2016-01-15 18:54:59 UTC) #6
Nicolas Zea
Yeah, I think I agree with Max that this method really is meant to only ...
4 years, 11 months ago (2016-01-15 21:24:23 UTC) #7
Jackie Quinn
On 2016/01/15 21:24:23, Nicolas Zea wrote: > Yeah, I think I agree with Max that ...
4 years, 11 months ago (2016-01-16 00:33:49 UTC) #8
Nicolas Zea
lgtm
4 years, 11 months ago (2016-01-16 00:37:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1582183004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1582183004/20001
4 years, 11 months ago (2016-01-16 00:46:35 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/136341)
4 years, 11 months ago (2016-01-16 00:55:16 UTC) #15
Jackie Quinn
droger, could I get an OWNERS review? Thanks!
4 years, 11 months ago (2016-01-19 22:47:40 UTC) #16
maxbogue
On 2016/01/19 22:47:40, Jackie Quinn wrote: > droger, could I get an OWNERS review? Thanks! ...
4 years, 11 months ago (2016-01-19 22:59:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1582183004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1582183004/20001
4 years, 11 months ago (2016-01-19 23:03:23 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-20 00:19:57 UTC) #21
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 00:21:07 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a6e131b465246f71d7375a51ddefbc48a55fc984
Cr-Commit-Position: refs/heads/master@{#370234}

Powered by Google App Engine
This is Rietveld 408576698