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 fdb6b500a1e4d4d18413c1100f5e4f26c52af433..3a84a442dbf8aad74576ad197cfed6ef129163ef 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -570,6 +570,9 @@ void BrowserCommandController::ExecuteCommandWithDisposition( |
case IDC_IMPORT_SETTINGS: |
ShowImportDialog(browser_); |
break; |
+ case IDC_TOGGLE_REQUEST_TABLET_SITE: |
+ ToggleRequestTabletSite(browser_); |
+ break; |
case IDC_ABOUT: |
ShowAboutChrome(browser_); |
break; |
@@ -931,6 +934,10 @@ void BrowserCommandController::UpdateCommandsForTabState() { |
CanCreateApplicationShortcuts(browser_)); |
#endif |
+ command_updater_.UpdateCommandEnabled( |
+ IDC_TOGGLE_REQUEST_TABLET_SITE, |
+ CanRequestTabletSite(current_web_contents)); |
+ |
UpdateCommandsForContentRestrictionState(); |
UpdateCommandsForBookmarkEditing(); |
} |