From e662ade1be2692f710ad9dba1bafc179d29c3400 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Mon, 8 Jun 2009 18:20:14 +0000 Subject: Move a few commands to the appropriate slot in the command order. Review URL: http://codereview.chromium.org/118311 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17879 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index dd3ae0f..b9e0031 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -2031,6 +2031,7 @@ void Browser::InitCommandState() { // Page-related commands command_updater_.UpdateCommandEnabled(IDC_CLOSE_POPUPS, true); + command_updater_.UpdateCommandEnabled(IDC_PRINT, true); command_updater_.UpdateCommandEnabled(IDC_ENCODING_AUTO_DETECT, true); command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF8, true); command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF16LE, true); @@ -2097,14 +2098,13 @@ void Browser::InitCommandState() { // The debugger doesn't work in single process mode. in_proc_devtools && !RenderProcessHost::run_renderer_in_process()); #endif + command_updater_.UpdateCommandEnabled(IDC_JS_CONSOLE, true); command_updater_.UpdateCommandEnabled(IDC_TASK_MANAGER, true); command_updater_.UpdateCommandEnabled(IDC_SELECT_PROFILE, true); command_updater_.UpdateCommandEnabled(IDC_SHOW_HISTORY, true); command_updater_.UpdateCommandEnabled(IDC_SHOW_BOOKMARK_MANAGER, true); command_updater_.UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true); command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE, true); - command_updater_.UpdateCommandEnabled(IDC_PRINT, true); - command_updater_.UpdateCommandEnabled(IDC_JS_CONSOLE, true); // Initialize other commands based on the window type. { @@ -2128,7 +2128,11 @@ void Browser::InitCommandState() { command_updater_.UpdateCommandEnabled(IDC_SELECT_LAST_TAB, normal_window); command_updater_.UpdateCommandEnabled(IDC_RESTORE_TAB, normal_window && !profile_->IsOffTheRecord()); + + // Page-related commands command_updater_.UpdateCommandEnabled(IDC_STAR, normal_window); + + // Clipboard commands command_updater_.UpdateCommandEnabled(IDC_COPY_URL, normal_window); // Show various bits of UI -- cgit v1.1