commit | ab656f59c4484ecb5671b1d475a5e3aedb7b1eab | [log] [tgz] |
---|---|---|
author | Weilun Shi <sweilun@chromium.org> | Wed Aug 01 18:37:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 01 18:37:45 2018 |
tree | 83c91a18d2d6b26b9891722d1c7cf6d83cef9c9f | |
parent | 69ea3b13f3e87e6e329d0b9a323dfaf571648f05 [diff] |
[NTP] Remove attribution section after restore default background Attribution section should be removed after clicking restore default background. Adding clearAttribution function when the restoreDefaultInteraction is called. Screenshot: https://screenshot.googleplex.com/AQT8eBddJ7A.png Bug: 869693 Change-Id: I18526c72c74fbff84320faf5f8a756c545138fcf Reviewed-on: https://chromium-review.googlesource.com/1157650 Reviewed-by: Kristi Park <kristipark@chromium.org> Commit-Queue: Weilun Shi <sweilun@chromium.org> Cr-Commit-Position: refs/heads/master@{#579871}
diff --git a/chrome/browser/resources/local_ntp/custom_backgrounds.js b/chrome/browser/resources/local_ntp/custom_backgrounds.js index cf9efb1..51e2a42 100644 --- a/chrome/browser/resources/local_ntp/custom_backgrounds.js +++ b/chrome/browser/resources/local_ntp/custom_backgrounds.js
@@ -843,6 +843,7 @@ // Interactions with the "Restore default background" option. var restoreDefaultInteraction = function(event) { editDialog.close(); + customBackgrounds.clearAttribution(); window.chrome.embeddedSearch.newTabPage.setBackgroundURL(''); }; $(customBackgrounds.IDS.RESTORE_DEFAULT).onclick = restoreDefaultInteraction;