SettingsSplit: Remove unnecessary deps of os-settings on pageVisibility
This is a CL to minimize os-settings's dependency on pageVisibility. This includes removing some references to non-existent paths as in [1] and replacing any pageVisibility path that only depends on guest mode in OS Settings with an explicit check on whether the machine is in guest mode from loadTimeData. This doesn't completely eliminate the pageVisibility fork [2] bug because the people-page still provides a pageVisibility subpath to sync- settings, but it removes the vast majority of the dependencies on the browser settings' pageVisibility. The people-page issue will be handled in a later CL to avoid bloating. LOGGED IN SCREENSHOTS: Screenshots for OS Settings logged into a GAIA account with this change deployed. Page 1 http://screen/Tcbdf04X2Q4 Page 2 http://screen/9t80k4pRAGj Page 3 http://screen/dRCw3iZcQUU Compare to the top level 'settings-section's in UX mock [1] (modulo reordering and renaming). GUEST MODE SCREENSHOTS: As per specs sent out by jessejames@, in guest mode, the visible sections[2] are Network, Bluetooth, Device, Search engine, Date and time, Privacy and security, Languages and input, Files, Printing, and Accessibility. Compare this with screenshots of guest mode with this change deployed: Page 1 http://screen/AriC9twWUi3 Page 2 http://screen/qnrUthAru3G [1] https://chromium-review.googlesource.com/c/chromium/src/+/1716338 [2] http://crbug.com/974906 [1] https://gallery.googleplex.com/projects/MCHbtQVoQ2HCZQLWgsMW9gCl/files/MCEJu8Y2hyDScYKiC7u07no3e21TaxzYd_w [2] There is a possibility that 'People' may be shown in guest mode depending on the outcome of a UX design discussion on the correct place for Kerberos settings, but this CL is working under the assumption that it is not shown. This can easily be changed after. Bug: 987349, 974906 Change-Id: I7f384437f9008742926eb7cf9d4d623bd8415591 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724828Reviewed-by:May Lippert <maybelle@chromium.org> Reviewed-by:
Hector Carmona <hcarmona@chromium.org> Commit-Queue: Jordy Greenblatt <jordynass@chromium.org> Cr-Commit-Position: refs/heads/master@{#682854}
Showing
This diff is collapsed.
Please register or sign in to comment