Index: chrome/browser/ui/webui/ntp/new_tab_ui.cc |
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc |
index e5b20aa647fa2ec94a753b3f48aa8684bc26335e..fb5cad62675f9eef580147a4d6e8340e83b5c463 100644 |
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc |
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc |
@@ -19,6 +19,7 @@ |
#include "base/threading/thread.h" |
#include "base/utf_string_conversions.h" |
#include "chrome/browser/defaults.h" |
+#include "chrome/browser/extensions/app_launcher.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/sessions/session_types.h" |
@@ -294,13 +295,12 @@ void NewTabUI::RegisterUserPrefs(PrefServiceSyncable* prefs) { |
// static |
bool NewTabUI::ShouldShowApps() { |
-#if defined(USE_ASH) || defined(OS_ANDROID) |
+#if defined(OS_ANDROID) |
// Ash shows apps in app list thus should not show apps page in NTP4. |
// Android does not have apps. |
return false; |
#else |
- return !CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kShowAppListShortcut); |
+ return !extensions::IsAppLauncherEnabled(); |
#endif |
} |