Commit ab656f59 authored by Weilun Shi's avatar Weilun Shi Committed by Commit Bot

[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/1157650Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Weilun Shi <sweilun@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579871}
parent 69ea3b13
......@@ -843,6 +843,7 @@ customBackgrounds.initCustomBackgrounds = function() {
// 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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment