diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 17:41:16 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 17:41:16 +0000 |
commit | 8da1fa0d697791cbfc2415f6352be13b7c9c685b (patch) | |
tree | 6eb0de9df326f819570c2c94dfc9cb9e75daf0a4 /chrome/browser/browser.cc | |
parent | 6a939dc42610b8e79b45e9107a64c3aab916c85b (diff) | |
download | chromium_src-8da1fa0d697791cbfc2415f6352be13b7c9c685b.zip chromium_src-8da1fa0d697791cbfc2415f6352be13b7c9c685b.tar.gz chromium_src-8da1fa0d697791cbfc2415f6352be13b7c9c685b.tar.bz2 |
Reverting r26698. Somehow this broke scons?
TBR=stuartmorgan
Review URL: http://codereview.chromium.org/217004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 1a037c5..a8e5469 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -2264,7 +2264,17 @@ void Browser::InitCommandState() { // Page-related commands command_updater_.UpdateCommandEnabled(IDC_CLOSE_POPUPS, true); + // TODO(estade): remove these ifdefs when printing is fully supported. +#if defined(OS_LINUX) +#if defined(TOOLKIT_GTK) + command_updater_.UpdateCommandEnabled(IDC_PRINT, + CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePrinting)); +#elif defined(TOOLKIT_VIEWS) + command_updater_.UpdateCommandEnabled(IDC_PRINT, false); +#endif +#else // !defined(OS_LINUX) command_updater_.UpdateCommandEnabled(IDC_PRINT, true); +#endif command_updater_.UpdateCommandEnabled(IDC_ENCODING_AUTO_DETECT, true); command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF8, true); command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF16LE, true); |