[Suggested files] Change suggested content toggle gating
This CL does two things. 1. The previous CL only checked the value of the content toggle at initialization, meaning a user wouldn't immediately stop seeing suggestions after disabling, or start seeing them after reenabling. This CL moves the check to just before display time instead. 2. This also adds a content toggle check to the local file provider, rather than just Drive in the previous CL. The UX of having one but not the other wasn't very good. Bug: 1034842 Change-Id: I4f408d8d1e40ef44e4a80906aa10ad7333a49eb6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2628709Reviewed-by:Rachel Wong <wrong@chromium.org> Reviewed-by:
Tony Yeoman <tby@chromium.org> Commit-Queue: Tony Yeoman <tby@chromium.org> Cr-Commit-Position: refs/heads/master@{#843856}
Showing
Please register or sign in to comment