Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6494)

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 13926002: Always show the NTP apps page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_page_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 78c6321ed23c45310e6353c4121dc357307929d8..2006a0289f8758132e0cc5c8498432faa95e5370 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -110,20 +110,10 @@ cr.define('ntp', function() {
}
};
- function gotShouldShowApps(shouldShowApps) {
- if (shouldShowApps != loadTimeData.getBoolean('showApps')) {
- // TODO(jeremya): update the UI in-place instead of reloading.
- window.location.reload();
- return;
- }
- }
-
/**
* Invoked at startup once the DOM is available to initialize the app.
*/
function onLoad() {
- // This will end up calling ntp.gotShouldShowApps.
- chrome.send('getShouldShowApps');
sectionsToWaitFor = 0;
if (loadTimeData.getBoolean('showMostvisited'))
sectionsToWaitFor++;
@@ -691,7 +681,6 @@ cr.define('ntp', function() {
getAppsPageIndex: getAppsPageIndex,
getCardSlider: getCardSlider,
onLoad: onLoad,
- gotShouldShowApps: gotShouldShowApps,
leaveRearrangeMode: leaveRearrangeMode,
logTimeToClick: logTimeToClick,
NtpFollowAction: NtpFollowAction,
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_page_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698