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

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

Issue 7227025: ntp4: fix app context menu z-order (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added bug ref Created 9 years, 5 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 | « chrome/browser/resources/bookmark_manager/js/main.js ('k') | chrome/browser/resources/ntp4/apps_page.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_tab.js
diff --git a/chrome/browser/resources/new_tab.js b/chrome/browser/resources/new_tab.js
index 06f05818e20cd87c6f248d16fb8f45f409f0c099..148dcb1686110f6e4cf9d729ebf359d8bab860e6 100644
--- a/chrome/browser/resources/new_tab.js
+++ b/chrome/browser/resources/new_tab.js
@@ -1467,10 +1467,12 @@ function isDoneLoading() {
return !document.body.classList.contains('loading');
}
-// Initialize the listener for the "hide this" link on the apps promo. We do
-// this outside of getAppsCallback because it only needs to be done once per
-// NTP load.
document.addEventListener('DOMContentLoaded', function() {
+ cr.enablePlatformSpecificCSSRules();
+
+ // Initialize the listener for the "hide this" link on the apps promo. We do
+ // this outside of getAppsCallback because it only needs to be done once per
+ // NTP load.
$('apps-promo-hide').addEventListener('click', function() {
chrome.send('hideAppsPromo', []);
document.documentElement.classList.remove('apps-promo-visible');
« no previous file with comments | « chrome/browser/resources/bookmark_manager/js/main.js ('k') | chrome/browser/resources/ntp4/apps_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698