Chromium Code Reviews| Index: chrome/browser/resources/ntp4/apps_page.js |
| diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js |
| index 21f5062ab97680733e16d39453d3235d37c38621..aefe0c20a2d0656dc9698ece53b4aee700dc6328 100644 |
| --- a/chrome/browser/resources/ntp4/apps_page.js |
| +++ b/chrome/browser/resources/ntp4/apps_page.js |
| @@ -668,6 +668,12 @@ cr.define('ntp', function() { |
| * @param {boolean} animate Whether to animate the insertion. |
| */ |
| insertApp: function(appData, animate) { |
| + // Don't show the web store icon if policy so dictates. |
|
Evan Stade
2013/02/13 22:40:08
it seems like this should be handled at the C++ la
dconnelly
2013/02/14 10:26:58
Done.
|
| + if (appData.is_webstore && |
| + loadTimeData.getBoolean('isWebStoreIconHidden')) { |
| + return; |
| + } |
| + |
| var index = this.tileElements_.length; |
| for (var i = 0; i < this.tileElements_.length; i++) { |
| if (appData.app_launch_ordinal < |