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

Unified Diff: apps/app_launcher.cc

Issue 12210102: Ensure that the AppListController class which lives in app_list_controller_win.cc plays nice with A… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « apps/DEPS ('k') | chrome/browser/extensions/extension_install_ui_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_launcher.cc
===================================================================
--- apps/app_launcher.cc (revision 181966)
+++ apps/app_launcher.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/prefs/pref_service.h"
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/ui/host_desktop.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/browser_thread.h"
@@ -29,7 +30,7 @@
};
AppLauncherState SynchronousAppLauncherChecks() {
-#if defined(USE_ASH)
+#if defined(USE_ASH) && !defined(OS_WIN)
return APP_LAUNCHER_ENABLED;
#elif !defined(OS_WIN)
return APP_LAUNCHER_DISABLED;
@@ -39,6 +40,11 @@
return APP_LAUNCHER_ENABLED;
}
+#if defined(USE_ASH)
+ if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH)
+ return APP_LAUNCHER_ENABLED;
+#endif
+
if (!BrowserDistribution::GetDistribution()->AppHostIsSupported())
return APP_LAUNCHER_DISABLED;
« no previous file with comments | « apps/DEPS ('k') | chrome/browser/extensions/extension_install_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698