From 39f23aea6a999e6f80ba301652bfce1a3e950018 Mon Sep 17 00:00:00 2001 From: benwells Date: Wed, 27 Aug 2014 01:01:52 -0700 Subject: Centralize command line checks for kEnableStreamlinedHostedApps. This moves all checks in the browser process into a common function. BUG=368372 Review URL: https://codereview.chromium.org/489313002 Cr-Commit-Position: refs/heads/master@{#292118} --- chrome/browser/ui/browser_command_controller.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/ui/browser_command_controller.cc') diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc index f50d838..0f7e668 100644 --- a/chrome/browser/ui/browser_command_controller.cc +++ b/chrome/browser/ui/browser_command_controller.cc @@ -11,6 +11,7 @@ #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/defaults.h" #include "chrome/browser/extensions/extension_service.h" +#include "chrome/browser/extensions/extension_util.h" #include "chrome/browser/lifetime/application_lifetime.h" #include "chrome/browser/prefs/incognito_mode_prefs.h" #include "chrome/browser/profiles/profile.h" @@ -979,8 +980,7 @@ void BrowserCommandController::InitCommandState() { // Navigation commands command_updater_.UpdateCommandEnabled( IDC_HOME, - normal_window || (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableStreamlinedHostedApps) && + normal_window || (extensions::util::IsStreamlinedHostedAppsEnabled() && browser_->is_app())); // Window management commands -- cgit v1.1