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

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: fix for Dan's comments 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 fec9e70e9c0452226e43943115679b03ef3c23aa..9bac395e83b84d0d944f5ca735ce4c08fdadc2af 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -549,6 +549,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;
@@ -762,6 +765,8 @@ void BrowserCommandController::InitCommandState() {
command_updater_.UpdateCommandEnabled(
IDC_SHOW_SYNC_SETUP, profile()->GetOriginalProfile()->IsSyncAccessible());
+ command_updater_.UpdateCommandEnabled(IDC_TOGGLE_REQUEST_TABLET_SITE, true);
sky 2012/09/07 18:05:30 You have this set in UpdateCommandsForTabState, wh
sschmitz 2012/09/07 22:33:09 Removed it. Done.
+
// Initialize other commands based on the window type.
bool normal_window = browser_->is_type_tabbed();
@@ -907,6 +912,9 @@ void BrowserCommandController::UpdateCommandsForTabState() {
CanCreateApplicationShortcuts(browser_));
#endif
+ command_updater_.UpdateCommandEnabled(IDC_TOGGLE_REQUEST_TABLET_SITE,
+ CanRequestTabletSite(browser_));
sky 2012/09/07 18:05:30 CanRequestTabletSite only uses the active tab cont
sschmitz 2012/09/07 22:33:09 Done.
+
UpdateCommandsForContentRestrictionState();
UpdateCommandsForBookmarkEditing();
}

Powered by Google App Engine
This is Rietveld 408576698