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

Unified Diff: chrome/browser/ui/app_list/extension_app_item.cc

Issue 489313002: Centralize command line checks for kEnableStreamlinedHostedApps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
Index: chrome/browser/ui/app_list/extension_app_item.cc
diff --git a/chrome/browser/ui/app_list/extension_app_item.cc b/chrome/browser/ui/app_list/extension_app_item.cc
index 7c8423b8e4370ecd4f49b8f23a3793a26589ac34..3f33b83523052b6621d90ed4e8fcda0c25e39aab 100644
--- a/chrome/browser/ui/app_list/extension_app_item.cc
+++ b/chrome/browser/ui/app_list/extension_app_item.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/app_list/extension_app_item.h"
-#include "base/command_line.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_util.h"
@@ -16,7 +15,6 @@
#include "chrome/browser/ui/extensions/extension_enable_flow.h"
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/extensions/manifest_url_handler.h"
#include "content/public/browser/user_metrics.h"
@@ -148,8 +146,8 @@ ExtensionAppItem::~ExtensionAppItem() {
bool ExtensionAppItem::NeedsOverlay() const {
// The overlay icon is disabled for hosted apps in windowed mode with
// streamlined hosted apps.
- bool streamlined_hosted_apps = CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kEnableStreamlinedHostedApps);
+ bool streamlined_hosted_apps =
+ extensions::util::IsStreamlinedHostedAppsEnabled();
#if defined(OS_CHROMEOS)
if (!streamlined_hosted_apps)
return false;
« no previous file with comments | « chrome/browser/ui/app_list/app_context_menu.cc ('k') | chrome/browser/ui/app_list/extension_app_model_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698