Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 546403002: Removed code related to IDC_PRINT_TO_DESTINATION. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_metro
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4656d7c1df5db3174fe5373621a8d67bfdfa2e9d..0c7943129f524cf44b86a6f05a28eb6d63be4ef9 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1273,17 +1273,7 @@ void BrowserCommandController::UpdatePrintingState() {
#if !defined(DISABLE_BASIC_PRINTING)
command_updater_.UpdateCommandEnabled(IDC_BASIC_PRINT,
CanBasicPrint(browser_));
-#elif defined(OS_WIN)
- HMODULE metro_module = base::win::GetMetroModule();
- if (metro_module != NULL) {
- typedef void (*MetroEnablePrinting)(BOOL);
- MetroEnablePrinting metro_enable_printing =
- reinterpret_cast<MetroEnablePrinting>(
- ::GetProcAddress(metro_module, "MetroEnablePrinting"));
- if (metro_enable_printing)
- metro_enable_printing(print_enabled);
- }
-#endif // !OS_WIN
+#endif // !DISABLE_BASIC_PRINTING
}
void BrowserCommandController::UpdateSaveAsState() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698