summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorpkasting@google.com <pkasting@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-30 22:40:08 +0000
committerpkasting@google.com <pkasting@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-30 22:40:08 +0000
commitfc9656edd36841cfb69c10539209b59872042513 (patch)
treeb8e118ad4833ba1de3a67ec4f99d0f427ec2fbb0 /chrome/browser/browser.cc
parentcb5d17f2f5c9d4a9777439f58e4a7f6eb049e26f (diff)
downloadchromium_src-fc9656edd36841cfb69c10539209b59872042513.zip
chromium_src-fc9656edd36841cfb69c10539209b59872042513.tar.gz
chromium_src-fc9656edd36841cfb69c10539209b59872042513.tar.bz2
Simple change to make the "New [incognito] window" commands work like you'd expect.
The old behavior disabled "New incognito window" when in incognito windows, created a new incognito tab instead of a new window when you already had an incognito window open, and gave you no way to get a non-incognito window from an incognito one. Now, both commands are always enabled, and both do exactly what they say they'll do no matter what type of window you're currently in. BUG=1190035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 72f5afd..be59357 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -863,9 +863,6 @@ void Browser::UpdateNavigationCommands() {
controller_.UpdateCommandEnabled(IDC_PRINT, web_contents != NULL);
controller_.UpdateCommandEnabled(IDC_DUPLICATE,
CanDuplicateContentsAt(selected_index()));
-
- controller_.UpdateCommandEnabled(IDC_GOOFFTHERECORD,
- profile_->GetOffTheRecordProfile() != profile_);
}
// Notification that the starredness of a tab changed.