| Index: chrome/browser/ui/browser_commands.cc
|
| diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
|
| index 74ca4de74f1bd1485d2b17598cdd8569517cf49d..5e3c96e18093ee19f6621fdfdd8dd796bcb91856 100644
|
| --- a/chrome/browser/ui/browser_commands.cc
|
| +++ b/chrome/browser/ui/browser_commands.cc
|
| @@ -598,21 +598,21 @@ void CloseTab(Browser* browser) {
|
| browser->tab_strip_model()->CloseSelectedTabs();
|
| }
|
|
|
| -bool CanZoomIn(content::WebContents* contents) {
|
| +bool IsAtMaximumZoom(content::WebContents* contents) {
|
| ZoomController* zoom_controller = ZoomController::FromWebContents(contents);
|
| return zoom_controller->GetZoomPercent() !=
|
| contents->GetMaximumZoomPercent() + 1;
|
| }
|
|
|
| -bool CanZoomOut(content::WebContents* contents) {
|
| +bool IsAtMinimumZoom(content::WebContents* contents) {
|
| ZoomController* zoom_controller = ZoomController::FromWebContents(contents);
|
| return zoom_controller->GetZoomPercent() !=
|
| contents->GetMinimumZoomPercent();
|
| }
|
|
|
| -bool ActualSize(content::WebContents* contents) {
|
| +bool IsAtDefaultZoom(content::WebContents* contents) {
|
| ZoomController* zoom_controller = ZoomController::FromWebContents(contents);
|
| - return zoom_controller->GetZoomPercent() != 100.0f;
|
| + return zoom_controller->IsAtDefaultZoom();
|
| }
|
|
|
| TabStripModelDelegate::RestoreTabType GetRestoreTabType(
|
|
|