Index: chrome/browser/ui/browser_commands.cc |
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
index fcf6d1b95f830508c9c93c8c31760842ead863ad..9ff7443679b6ac2d3287dd93d9ef3e3c96f5d75d 100644 |
--- a/chrome/browser/ui/browser_commands.cc |
+++ b/chrome/browser/ui/browser_commands.cc |
@@ -872,6 +872,7 @@ bool CanPrint(Browser* browser) { |
GetContentRestrictions(browser) & CONTENT_RESTRICTION_PRINT); |
} |
+#if !defined(OS_WIN) |
void AdvancedPrint(Browser* browser) { |
#if defined(ENABLE_FULL_PRINTING) |
printing::PrintViewManager* print_view_manager = |
@@ -882,19 +883,10 @@ void AdvancedPrint(Browser* browser) { |
} |
bool CanAdvancedPrint(Browser* browser) { |
- // If printing is not disabled via pref or policy, it is always possible to |
- // advanced print when the print preview is visible. The exception to this |
- // is under Win8 ash, since showing the advanced print dialog will open it |
- // modally on the Desktop and hang the browser. We can remove this check |
- // once we integrate with the system print charm. |
-#if defined(OS_WIN) |
- if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) |
- return false; |
-#endif |
- |
return browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintingEnabled) && |
(PrintPreviewShowing(browser) || CanPrint(browser)); |
} |
+#endif // !OS_WIN |
void PrintToDestination(Browser* browser) { |
#if defined(ENABLE_FULL_PRINTING) |