commit | 725a59b7a069055de7b382b0c8bda26fc2628d80 | [log] [tgz] |
---|---|---|
author | Marc Treib <treib@chromium.org> | Wed Nov 21 15:03:04 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 21 15:03:04 2018 |
tree | bd95ebf7834589872f8a020a530c31c3d0440b6c | |
parent | 3518eb0a537cb7f47c1aa2ab08cb145295623d25 [diff] |
SearchTabHelper: Add IsSyncFeatureEnabled check to IsHistorySyncEnabled Previously it just checked GetPreferredDataTypes. This was probably okay in practice (the check was anyway more of a "has the user not disabled history sync" rather than "is history sync enabled"), but still better to be correct. While we're here, also move to SyncUserSettings, which is the new way to query any user-configurable bits of Sync. This also includes a bunch of test cleanup: Removing a Mock class that isn't used, and using NiceMock to avoid unnecessary chattiness. Bug: 907027, 884159 Change-Id: I2a3d0f8ef13a74b51f4b4a2edc19976a61c6c430 Reviewed-on: https://chromium-review.googlesource.com/c/1343087 Reviewed-by: Mikel Astiz <mastiz@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#610055}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .