diff options
author | benwells <benwells@chromium.org> | 2014-08-27 01:01:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-27 08:02:47 +0000 |
commit | 39f23aea6a999e6f80ba301652bfce1a3e950018 (patch) | |
tree | 308de5dd6c7778d236375e02f92a66d4f26d9af5 /chrome/browser/ui/browser_command_controller.cc | |
parent | a2c9ec97f6e95bdfe65877b371784b437bc37391 (diff) | |
download | chromium_src-39f23aea6a999e6f80ba301652bfce1a3e950018.zip chromium_src-39f23aea6a999e6f80ba301652bfce1a3e950018.tar.gz chromium_src-39f23aea6a999e6f80ba301652bfce1a3e950018.tar.bz2 |
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}
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r-- | chrome/browser/ui/browser_command_controller.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |