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

Unified Diff: chrome/browser/resources/ntp/apps.js

Issue 5958002: Do not show apps section until default apps are installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
Index: chrome/browser/resources/ntp/apps.js
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index 2be85fa3b32bcd6cac8768dc0d077d24c036ea34..65f97cb7af760eaa930015d6cac8cf53593b0011 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -65,7 +65,9 @@ function getAppsCallback(data) {
apps.createWebStoreClosedMenuElement());
}
- if (!(shownSections & MINIMIZED_APPS)) {
+ if (!data.showLauncher || (shownSections & MINIMIZED_APPS)) {
+ appsSection.classList.add('disabled');
+ } else {
appsSection.classList.remove('disabled');
}
addClosedMenuFooter(apps.menu, 'apps', MINIMIZED_APPS, Section.APPS);
« chrome/browser/resources/new_new_tab.html ('K') | « chrome/browser/resources/new_new_tab.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698