summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 18:20:14 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 18:20:14 +0000
commite662ade1be2692f710ad9dba1bafc179d29c3400 (patch)
treebee7bc99589f079332d69127b095e4a2cdda3208 /chrome/browser
parentcb1e496b84e8f9d702a4f78da65f7a3a5ec18594 (diff)
downloadchromium_src-e662ade1be2692f710ad9dba1bafc179d29c3400.zip
chromium_src-e662ade1be2692f710ad9dba1bafc179d29c3400.tar.gz
chromium_src-e662ade1be2692f710ad9dba1bafc179d29c3400.tar.bz2
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
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/browser.cc8
1 files changed, 6 insertions, 2 deletions
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