| 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 b0ce210b3c06432e521016eb3b7321dc02743a26..2811000a61646fc683980c8e3a7057531026df6b 100644
|
| --- a/chrome/browser/ui/browser_command_controller.cc
|
| +++ b/chrome/browser/ui/browser_command_controller.cc
|
| @@ -1135,9 +1135,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() {
|
|
|