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 244c8e4e07294ec253fe7435cc30a0c470518c3e..23c72e6110e4c31f10d39c3487eabaa872ac82a8 100644 |
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc |
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc |
@@ -159,6 +159,14 @@ std::string GetNewTabBackgroundTilingCSS( |
return ThemeProperties::TilingToString(repeat_mode); |
} |
+bool ShouldDisplayAppInfoDialog() { |
tsergeant
2015/02/05 05:33:27
Is there a good way to avoid adding new logic to f
sashab
2015/02/06 16:23:00
Hmm... This would be perfect as a static method to
tsergeant
2015/02/09 03:10:49
I already tried something similar. Adding a method
sashab
2015/02/09 11:47:07
Don't really want to put it in switches, since tha
|
+#if defined(OS_MACOSX) |
+ return false; |
+#else |
+ return true; |
+#endif |
+} |
+ |
} // namespace |
NTPResourceCache::NTPResourceCache(Profile* profile) |
@@ -439,6 +447,8 @@ void NTPResourceCache::CreateNewTabHTML() { |
l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); |
load_time_data.SetString("appdetails", |
l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_DETAILS)); |
+ load_time_data.SetString("appinfodialog", |
+ l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_INFO)); |
load_time_data.SetString("appcreateshortcut", |
l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_CREATE_SHORTCUT)); |
load_time_data.SetString("appDefaultPageName", |
@@ -508,6 +518,9 @@ void NTPResourceCache::CreateNewTabHTML() { |
l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_TAB)); |
} |
+ load_time_data.SetBoolean("enableAppInfoDialog", |
+ ShouldDisplayAppInfoDialog()); |
+ |
#if defined(OS_CHROMEOS) |
load_time_data.SetString("expandMenu", |
l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_MENU_EXPAND)); |