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

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

Issue 3156049: First set of changes for M7 NTP. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: pre-review cleanup Created 10 years, 4 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
Index: chrome/browser/resources/ntp/apps.js
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index 41c2e6e7e5aab1780c6678a572827cdfc11edcea..64b490fdbc4b280828034309888ff571e3407f07 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -5,26 +5,14 @@
function getAppsCallback(data) {
logEvent('recieved apps');
var appsSection = $('apps-section');
- var debugSection = $('debug');
- appsSection.textContent = '';
+ var appsSectionContent = $('apps-section-content');
+ appsSectionContent.textContent = '';
data.apps.forEach(function(app) {
- appsSection.appendChild(apps.createElement(app));
+ appsSectionContent.appendChild(apps.createElement(app));
});
- // TODO(aa): Figure out what to do with the debug mode when we turn apps on
- // for everyone.
- if (appsSection.hasChildNodes()) {
- appsSection.classList.remove('disabled');
- if (data.showDebugLink) {
- debugSection.classList.remove('disabled');
- }
-
- appsSection.appendChild(apps.createWebStoreElement());
- } else {
- appsSection.classList.add('disabled');
- debugSection.classList.add('disabled');
- }
+ appsSectionContent.appendChild(apps.createWebStoreElement());
}
var apps = {
« chrome/browser/resources/ntp/apps.css ('K') | « chrome/browser/resources/ntp/apps.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698