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 6bd8d12470fde830889d807fa299d5b1958ee939..5ec623ea018a6d46fcc4b00c5c0793af9d8e6c6d 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -556,6 +556,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; |
@@ -917,6 +920,10 @@ void BrowserCommandController::UpdateCommandsForTabState() { |
CanCreateApplicationShortcuts(browser_)); |
#endif |
+ command_updater_.UpdateCommandEnabled( |
+ IDC_TOGGLE_REQUEST_TABLET_SITE, |
+ CanRequestTabletSite(current_web_contents)); |
+ |
UpdateCommandsForContentRestrictionState(); |
UpdateCommandsForBookmarkEditing(); |
} |