Fix PageInfoBubbleViewTest.SetPermissionInfo with SecondaryUiMd
Under MD, the changed setting is always read from the combobox selected index when changed in the UI. PermissionSelectorRow::PermissionChanged() ignores the argument, except to detect whether it is the default. Also PermissionMenuModel gets strings using PageInfoUI:: PermissionActionToUIString(..) rather than directly from the ResourceBundle. Ensure the unit test acconts for these. Test exposed a memory leak with SecondaryUiMd, which enables views:: Combobox for the selectors. Combobox needs to be deleted before its model is destroyed. View::RemoveChildView doesn't delete its argument, but simply calling delete view does end up calling RemoveChildView(). Bug: 713030, 780408 Change-Id: I373cf0d40316bb2fc42e76bb470d1977c0678e2b Reviewed-on: https://chromium-review.googlesource.com/748861Reviewed-by:Lucas Garron <lgarron@chromium.org> Commit-Queue: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#513315}
Showing
Please register or sign in to comment