diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 17:09:21 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 17:09:21 +0000 |
commit | d5c99b1735e08464682837ac5a61d985de2a7b3c (patch) | |
tree | 55040a3ac4bda0218d9d5675a2f3ac36233fe6f2 | |
parent | d796802f682491c8c21b09a052f1d9d73843fa4c (diff) | |
download | chromium_src-d5c99b1735e08464682837ac5a61d985de2a7b3c.zip chromium_src-d5c99b1735e08464682837ac5a61d985de2a7b3c.tar.gz chromium_src-d5c99b1735e08464682837ac5a61d985de2a7b3c.tar.bz2 |
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
-rw-r--r-- | chrome/browser/browser.cc | 12 |
1 files 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); |