summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_command_controller.cc
diff options
context:
space:
mode:
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-05 09:00:24 +0000
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-05 09:00:24 +0000
commitc9f983d7b27a3fa08ba1a8034cfe5a8c31868bf0 (patch)
treeb2a6611823bbe37f52425d2ca893f405589f395b /chrome/browser/ui/browser_command_controller.cc
parentfb5af8334aed4203889a37708406430bb359970f (diff)
downloadchromium_src-c9f983d7b27a3fa08ba1a8034cfe5a8c31868bf0.zip
chromium_src-c9f983d7b27a3fa08ba1a8034cfe5a8c31868bf0.tar.gz
chromium_src-c9f983d7b27a3fa08ba1a8034cfe5a8c31868bf0.tar.bz2
Add home button to streamlined hosted apps.
This CL adds a home button to the toolbar when running streamlined hosted apps. The home button will navigate to the browser's initial page which is the launch page of the app. BUG=318607 Review URL: https://codereview.chromium.org/149393002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r--chrome/browser/ui/browser_command_controller.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 57ea06b..a85a5bc 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -969,7 +969,11 @@ void BrowserCommandController::InitCommandState() {
bool normal_window = browser_->is_type_tabbed();
// Navigation commands
- command_updater_.UpdateCommandEnabled(IDC_HOME, normal_window);
+ command_updater_.UpdateCommandEnabled(
+ IDC_HOME,
+ normal_window || (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableStreamlinedHostedApps) &&
+ browser_->is_app()));
// Window management commands
command_updater_.UpdateCommandEnabled(IDC_SELECT_NEXT_TAB, normal_window);