Index: chrome/browser/ui/browser_command_controller.cc |
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc |
index cc041b4646a4f966599c5f6fecab6f29bc966226..1c56704a96df0332b3eb3a2755ebf0393269a88e 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -542,10 +542,12 @@ void BrowserCommandController::ExecuteCommandWithDisposition( |
case IDC_PRINT: |
Print(browser_); |
break; |
+#if !defined(OS_WIN) |
case IDC_ADVANCED_PRINT: |
content::RecordAction(base::UserMetricsAction("Accel_Advanced_Print")); |
AdvancedPrint(browser_); |
break; |
+#endif // !OS_WIN |
case IDC_PRINT_TO_DESTINATION: |
PrintToDestination(browser_); |
break; |
@@ -1273,11 +1275,10 @@ void BrowserCommandController::UpdateCommandsForFullscreenMode() { |
void BrowserCommandController::UpdatePrintingState() { |
bool print_enabled = CanPrint(browser_); |
command_updater_.UpdateCommandEnabled(IDC_PRINT, print_enabled); |
+#if !defined(OS_WIN) |
command_updater_.UpdateCommandEnabled(IDC_ADVANCED_PRINT, |
CanAdvancedPrint(browser_)); |
- command_updater_.UpdateCommandEnabled(IDC_PRINT_TO_DESTINATION, |
- print_enabled); |
-#if defined(OS_WIN) |
+#else // !OS_WIN |
HMODULE metro_module = base::win::GetMetroModule(); |
if (metro_module != NULL) { |
typedef void (*MetroEnablePrinting)(BOOL); |
@@ -1287,7 +1288,7 @@ void BrowserCommandController::UpdatePrintingState() { |
if (metro_enable_printing) |
metro_enable_printing(print_enabled); |
} |
-#endif |
+#endif // !OS_WIN |
} |
void BrowserCommandController::UpdateSaveAsState() { |