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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 1305653002: Make the NTP apps page respect the enable hosted apps in windows flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-enable-hosted-apps-in-windows
Patch Set: Addressing reviewer feedback Created 5 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
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index 4514adc8e53c01016bb15b3b28aa62d632a1ac34..c487faf6ff09352c2869b4998e8d8448f0903a6f 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -477,8 +477,11 @@ void NTPResourceCache::CreateNewTabHTML() {
load_time_data.SetBoolean("showWebStoreIcon",
!prefs->GetBoolean(prefs::kHideWebStoreIcon));
- bool bookmark_apps_enabled = extensions::util::IsNewBookmarkAppsEnabled();
- load_time_data.SetBoolean("enableNewBookmarkApps", bookmark_apps_enabled);
+ load_time_data.SetBoolean("enableNewBookmarkApps",
+ extensions::util::IsNewBookmarkAppsEnabled());
+
+ load_time_data.SetBoolean("canHostedAppsOpenInWindows",
+ extensions::util::CanHostedAppsOpenInWindows());
load_time_data.SetBoolean("canShowAppInfoDialog",
CanShowAppInfoDialog());
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698