summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-17 14:33:40 +0000
committerapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-17 14:33:40 +0000
commitaf664c7d029c74f7729cb05174935699d91f68ad (patch)
tree2863102d08d8db953ed643cb3512600777d079b5 /chrome
parent2cfc4b145353926e5d5a308b979b6e26e10c8392 (diff)
downloadchromium_src-af664c7d029c74f7729cb05174935699d91f68ad.zip
chromium_src-af664c7d029c74f7729cb05174935699d91f68ad.tar.gz
chromium_src-af664c7d029c74f7729cb05174935699d91f68ad.tar.bz2
Disable 'Open File' for the DevTools window
R=pfeldman@chromium.org BUG=80266 TEST=Open File shortcut in DevTools does nothing Review URL: http://codereview.chromium.org/7038008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/ui/browser.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index e313a036..a9619cf 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -3899,6 +3899,8 @@ void Browser::UpdateCommandsForTabState() {
current_tab->controller().CanViewSource());
command_updater_.UpdateCommandEnabled(IDC_EMAIL_PAGE_LOCATION,
current_tab->ShouldDisplayURL() && current_tab->GetURL().is_valid());
+ if (is_devtools())
+ command_updater_.UpdateCommandEnabled(IDC_OPEN_FILE, false);
// Changing the encoding is not possible on Chrome-internal webpages.
// Instead of using GetURL here, we use url() (which is the "real" url of the