| Index: chrome/browser/resources/new_new_tab.js
|
| ===================================================================
|
| --- chrome/browser/resources/new_new_tab.js (revision 53632)
|
| +++ chrome/browser/resources/new_new_tab.js (working copy)
|
| @@ -27,12 +27,6 @@
|
| homepageButton.textContent = data[0].set_homepage_tip;
|
| homepageButton.addEventListener('click', setAsHomePageLinkClicked);
|
| return homepageButton;
|
| - } else if (data[0].set_promo_tip) {
|
| - var promoMessage = document.createElement('span');
|
| - promoMessage.innerHTML = data[0].set_promo_tip;
|
| - var promoButton = promoMessage.querySelector('button');
|
| - promoButton.addEventListener('click', importBookmarksLinkClicked);
|
| - return promoMessage;
|
| } else {
|
| try {
|
| return parseHtmlSubset(data[0].tip_html_text);
|
| @@ -447,6 +441,14 @@
|
| actionLink.blur();
|
| }
|
|
|
| +function showFirstRunNotification() {
|
| + showNotification(localStrings.getString('firstrunnotification'),
|
| + localStrings.getString('closefirstrunnotification'),
|
| + null, 30000);
|
| + var notificationElement = $('notification');
|
| + notification.classList.add('first-run');
|
| +}
|
| +
|
| /**
|
| * This handles the option menu.
|
| * @param {Element} button The button element.
|
| @@ -850,11 +852,6 @@
|
| e.preventDefault();
|
| }
|
|
|
| -function importBookmarksLinkClicked(e) {
|
| - chrome.send('importBookmarks');
|
| - e.preventDefault();
|
| -}
|
| -
|
| function onHomePageSet(data) {
|
| showNotification(data[0], data[1]);
|
| // Removes the "make this my home page" tip.
|
| @@ -934,6 +931,11 @@
|
| mostVisited.ensureSmallGridCorrect();
|
| document.body.classList.remove('loading');
|
| }, 1);
|
| +
|
| + // Only show the first run notification if first run.
|
| + if (firstRun) {
|
| + showFirstRunNotification();
|
| + }
|
| }
|
|
|
| // Log clicked links from the tips section.
|
|
|