From d5c99b1735e08464682837ac5a61d985de2a7b3c Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 25 Feb 2009 17:09:21 +0000 Subject: Allow JS Debugger shortcut to work in fullscreen mode, since there's no reason not to. BUG=8023 Review URL: http://codereview.chromium.org/27110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10338 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 5af7a2b..a162a26 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1996,6 +1996,13 @@ void Browser::InitCommandState() { command_updater_.UpdateCommandEnabled(IDC_SELECT_LAST_TAB, normal_window); command_updater_.UpdateCommandEnabled(IDC_RESTORE_TAB, normal_window && !profile_->IsOffTheRecord()); + + // Show various bits of UI +#if defined(OS_WIN) + command_updater_.UpdateCommandEnabled(IDC_DEBUGGER, + // The debugger doesn't work in single process mode. + normal_window && !RenderProcessHost::run_renderer_in_process()); +#endif } // Initialize other commands whose state changes based on fullscreen mode. @@ -2074,11 +2081,6 @@ void Browser::UpdateCommandsForFullscreenMode(bool is_fullscreen) { // Show various bits of UI command_updater_.UpdateCommandEnabled(IDC_DEVELOPER_MENU, show_main_ui); -#if defined(OS_WIN) - command_updater_.UpdateCommandEnabled(IDC_DEBUGGER, - // The debugger doesn't work in single process mode. - show_main_ui && !RenderProcessHost::run_renderer_in_process()); -#endif command_updater_.UpdateCommandEnabled(IDC_NEW_PROFILE, show_main_ui); command_updater_.UpdateCommandEnabled(IDC_REPORT_BUG, show_main_ui); command_updater_.UpdateCommandEnabled(IDC_SHOW_BOOKMARK_BAR, show_main_ui); -- cgit v1.1