Index: chrome/browser/resources/ntp4/new_tab.js |
=================================================================== |
--- chrome/browser/resources/ntp4/new_tab.js (revision 96850) |
+++ chrome/browser/resources/ntp4/new_tab.js (working copy) |
@@ -206,7 +206,7 @@ |
bookmarksPage = new ntp4.BookmarksPage(); |
appendTilePage(bookmarksPage, localStrings.getString('bookmarksPage')); |
- chrome.send('getBookmarks'); |
+ chrome.send('getBookmarksData'); |
} |
/** |
@@ -688,6 +688,10 @@ |
mostVisitedPage.data = data; |
} |
+ function setBookmarksData(data) { |
+ bookmarksPage.data = data; |
+ } |
+ |
/** |
* Check the directionality of the page. |
* @return {boolean} True if Chrome is running an RTL UI. |
@@ -710,22 +714,23 @@ |
// Return an object with all the exports |
return { |
- assert: assert, |
appAdded: appAdded, |
appRemoved: appRemoved, |
appsPrefChangeCallback: appsPrefChangeCallback, |
+ assert: assert, |
enterRearrangeMode: enterRearrangeMode, |
getAppsCallback: getAppsCallback, |
+ getAppsPageIndex: getAppsPageIndex, |
getCardSlider: getCardSlider, |
- getAppsPageIndex: getAppsPageIndex, |
initialize: initialize, |
isRTL: isRTL, |
leaveRearrangeMode: leaveRearrangeMode, |
- themeChanged: themeChanged, |
+ saveAppPageName: saveAppPageName, |
+ setBookmarksData: setBookmarksData, |
+ setMostVisitedPages: setMostVisitedPages, |
setRecentlyClosedTabs: setRecentlyClosedTabs, |
- setMostVisitedPages: setMostVisitedPages, |
showNotification: showNotification, |
- saveAppPageName: saveAppPageName |
+ themeChanged: themeChanged |
}; |
}); |