| Index: 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 f50d8385549c128599ad5fd2b5fed06598a07788..0f7e6686f5175be993aed998c468f78a260d8a94 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
|
|
|