commit | 779c9ce30f7ff154666d1c1612cace6b854af3b9 | [log] [tgz] |
---|---|---|
author | Kyle Milka <kmilka@chromium.org> | Fri Jan 18 16:39:22 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 18 16:39:22 2019 |
tree | 6378f4ebaba89477865ef883e753dcdaf96493ec | |
parent | 827be29261415525cf71ad75c086697e1aedcc24 [diff] |
[NTP] Allow blacklisting and opt-out of suggestions Provide several new embeddedSearch APIs for blacklisting NTP search suggestions and opting out: window.chrome.embeddedSearch.newTabPage.blacklistSearchSuggestion(task_version, task_id) window.chrome.embeddedSearch.newTabPage.blacklistSearchSuggestionWithHash(task_version, task_id, hash) window.chrome.embeddedSearch.newTabPage.optOutOfSearchSuggestions() Store blacklist and opt-out in user prefs. Append blacklist to requests for suggestions as the url param 'vtgb'. Bug: 904565 Change-Id: I308a57af9e61808d78bfaf606bdfe03bdd7a7acb Reviewed-on: https://chromium-review.googlesource.com/c/1384526 Commit-Queue: Kyle Milka <kmilka@chromium.org> Reviewed-by: Dominic Battré <battre@chromium.org> Reviewed-by: Chris Palmer <palmer@chromium.org> Reviewed-by: Kristi Park <kristipark@chromium.org> Cr-Commit-Position: refs/heads/master@{#624157}
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 .