From 7fd4cc37ca4361f04bb45da1ec06210e84c7c303 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 15 Apr 2009 23:17:37 +0000 Subject: Allow users to hit ctrl-shift-delete ("clear browsing data") even in fullscreen mode. I elected not to continue to leave this disabled for app-mode windows since there's no menu entry for it. Not sure if that was the right call. BUG=9318 Review URL: http://codereview.chromium.org/67188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13807 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/browser.cc') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index e8a3e4f..d87171b 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -2154,6 +2154,8 @@ void Browser::InitCommandState() { // The debugger doesn't work in single process mode. normal_window && !RenderProcessHost::run_renderer_in_process()); #endif + command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA, + normal_window); } // Initialize other commands whose state changes based on fullscreen mode. @@ -2237,7 +2239,6 @@ void Browser::UpdateCommandsForFullscreenMode(bool is_fullscreen) { 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); - command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA, show_main_ui); command_updater_.UpdateCommandEnabled(IDC_IMPORT_SETTINGS, show_main_ui); command_updater_.UpdateCommandEnabled(IDC_OPTIONS, show_main_ui); command_updater_.UpdateCommandEnabled(IDC_EDIT_SEARCH_ENGINES, show_main_ui); -- cgit v1.1