summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 19:12:20 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 19:12:20 +0000
commitc0658ebb5b42c8b01cde525441bd0539e5a4bf4a (patch)
treeaf69dfe9d5737de5241cdcbc1900fbb023ac311a /chrome/browser/browser.cc
parent47ed0f566fe2aaf6b995fb1bc04ca31fceb0aefe (diff)
downloadchromium_src-c0658ebb5b42c8b01cde525441bd0539e5a4bf4a.zip
chromium_src-c0658ebb5b42c8b01cde525441bd0539e5a4bf4a.tar.gz
chromium_src-c0658ebb5b42c8b01cde525441bd0539e5a4bf4a.tar.bz2
Fixes bug where choosing reopen closed tba would do nothing for
popups. The bug stemmed from browser initializing the enabled state of IDC_RESTORE_TAB to false for popups, but CanRestoreTab returns true for popups. There is no need to diable restoring tabs for popups as we don't always restore to the current window, or we may end up restoring a closed window. BUG=13774 TEST=see bug Review URL: http://codereview.chromium.org/369005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 6dd5f0e..4343eec 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -2425,7 +2425,7 @@ void Browser::InitCommandState() {
command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_7, normal_window);
command_updater_.UpdateCommandEnabled(IDC_SELECT_LAST_TAB, normal_window);
command_updater_.UpdateCommandEnabled(IDC_RESTORE_TAB,
- normal_window && !profile_->IsOffTheRecord());
+ !profile_->IsOffTheRecord());
// Page-related commands
command_updater_.UpdateCommandEnabled(IDC_BOOKMARK_PAGE, normal_window);