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 dab47afe964b7729fbb903d9d35ac8386b6b147e..534437f0f94fe377fcf9440dbfe243d1d19c4107 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -1138,9 +1138,12 @@ void BrowserCommandController::UpdateCommandsForZoomState() { |
browser_->tab_strip_model()->GetActiveWebContents(); |
if (!contents) |
return; |
- command_updater_.UpdateCommandEnabled(IDC_ZOOM_PLUS, CanZoomIn(contents)); |
- command_updater_.UpdateCommandEnabled(IDC_ZOOM_NORMAL, ActualSize(contents)); |
- command_updater_.UpdateCommandEnabled(IDC_ZOOM_MINUS, CanZoomOut(contents)); |
+ command_updater_.UpdateCommandEnabled(IDC_ZOOM_PLUS, |
+ IsAtMaximumZoom(contents)); |
+ command_updater_.UpdateCommandEnabled(IDC_ZOOM_NORMAL, |
+ IsAtDefaultZoom(contents)); |
+ command_updater_.UpdateCommandEnabled(IDC_ZOOM_MINUS, |
+ IsAtMinimumZoom(contents)); |
} |
void BrowserCommandController::UpdateCommandsForContentRestrictionState() { |