Fix unnecessary toggle changed calls on incognito ntp
Add a check to only call the cookie controls service if the new state is different from the previous state, because calling setChecked programmatically triggers onCheckedChanged. Bug: 1040091 Change-Id: I639a08cf47e365a3542c94b18ba680defca55b99 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132209Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Christian Dullweber <dullweber@chromium.org> Commit-Queue: Ehimare Okoyomon <eokoyomon@chromium.org> Cr-Commit-Position: refs/heads/master@{#755398}
Showing
Please register or sign in to comment