|
|
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 #Messages
Total messages: 23 (10 generated)
jyquinn@chromium.org changed reviewers: + droger@chromium.org
Hi David, We're hitting this DCHECK when switching on and off "Sync Everything." Continuing execution doesn't seem to have any negative implications, so I'm wondering whether this DCHECK is necessary. OnUserChoseDataTypes is called from SetSyncingAllDataTypes, using "GetDataTypes()" for chosen_types. Let me know what you think.
droger@chromium.org changed reviewers: + zea@chromium.org
I don't really know about this. +zea
maxbogue@chromium.org changed reviewers: + maxbogue@chromium.org
Could you do the intersection with syncer::UserSelectableTypes() before calling OnUserChoseDatatypes() instead of removing the DCHECK? I agree that it would be nicer if the set and get methods for preferred types were symmetric but for now they aren't.
Yeah, I think I agree with Max that this method really is meant to only affect user selectable types, so it's confusing to allow non-user selectable types in here.
On 2016/01/15 21:24:23, Nicolas Zea wrote: > Yeah, I think I agree with Max that this method really is meant to only affect > user selectable types, so it's confusing to allow non-user selectable types in > here. That sounds good to me. New patch uploaded!
Description was changed from ========== Remove DCHECK in ProfileSyncService::OnUserChoseDataTypes DCHECK in ProfileSyncService::OnUserChoseDataTypes was being triggered when the user switches "Sync Everything" on or off on the Account Sync settings page. This DCHECK should be removed if not actually necessary. BUG=542935 ========== to ========== Only pass user-selectable types into ProfileSyncService::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 ==========
Description was changed from ========== Only pass user-selectable types into ProfileSyncService::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 ========== to ========== [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 ==========
lgtm
The CQ bit was checked by jyquinn@chromium.org
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
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
droger, could I get an OWNERS review? Thanks!
On 2016/01/19 22:47:40, Jackie Quinn wrote: > droger, could I get an OWNERS review? Thanks! Nicolas is now an owner for that file as of http://crrev.com/1598483003.
The CQ bit was checked by jyquinn@chromium.org
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
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/a6e131b465246f71d7375a51ddefbc48a55fc984 Cr-Commit-Position: refs/heads/master@{#370234} |