Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5803)

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 10827146: crbug.com/127841 - Request Tablet Site on CB with touch screen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed unused flag (2nd rts flag) Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698