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

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 comments 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..5611b1063dadb1a1c26ff556073a3ef60494e8cd 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -480,6 +480,11 @@ void NTPResourceCache::CreateNewTabHTML() {
bool bookmark_apps_enabled = extensions::util::IsNewBookmarkAppsEnabled();
load_time_data.SetBoolean("enableNewBookmarkApps", bookmark_apps_enabled);
+ bool hosted_apps_in_windows_enabled =
Dan Beam 2015/08/22 06:36:21 nit: just inline this rather than creating a copy
+ extensions::util::CanHostedAppsOpenInWindows();
+ load_time_data.SetBoolean("canHostedAppsOpenInWindows",
+ hosted_apps_in_windows_enabled);
+
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