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

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: Rebasing 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698