diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 04:18:37 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 04:18:37 +0000 |
commit | fe5c984aa8b70004fcec22152124c8c67c8bda81 (patch) | |
tree | 6781d612ec069b4201c90c4fc076c17add186204 /chrome/browser | |
parent | c2176e789af9629724d538b0ccc5ede157f7cb5a (diff) | |
download | chromium_src-fe5c984aa8b70004fcec22152124c8c67c8bda81.zip chromium_src-fe5c984aa8b70004fcec22152124c8c67c8bda81.tar.gz chromium_src-fe5c984aa8b70004fcec22152124c8c67c8bda81.tar.bz2 |
Ctrl+W should close app windows too
http://crbug.com/2478
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/browser_commands.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/browser_commands.cc b/chrome/browser/browser_commands.cc index 8a760c1..e4e5938d 100644 --- a/chrome/browser/browser_commands.cc +++ b/chrome/browser/browser_commands.cc @@ -54,7 +54,7 @@ void Browser::InitCommandState() { GetType() == BrowserType::TABBED_BROWSER); controller_.UpdateCommandEnabled(IDC_GO, true); controller_.UpdateCommandEnabled(IDC_NEWTAB, true); - controller_.UpdateCommandEnabled(IDC_CLOSETAB, !IsApplication()); + controller_.UpdateCommandEnabled(IDC_CLOSETAB, true); controller_.UpdateCommandEnabled(IDC_NEWWINDOW, true); controller_.UpdateCommandEnabled(IDC_CLOSEWINDOW, true); controller_.UpdateCommandEnabled(IDC_FOCUS_LOCATION, true); @@ -232,9 +232,6 @@ bool Browser::IsCommandEnabled(int id) const { TabContents* current_tab = GetSelectedTabContents(); return (current_tab && current_tab->is_loading()); } - case IDC_CLOSETAB: { - return !IsApplication(); - } default: return controller_.IsCommandEnabled(id); } |