Index: chrome/browser/ui/toolbar/wrench_menu_model.cc |
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
index fcd0ad88f7f50b46a842adb6deafbe95073b8028..584be57cf78a31c21fd2b662aec341d257d1b04b 100644 |
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc |
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
@@ -43,6 +43,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/common/profiling.h" |
#include "content/public/browser/host_zoom_map.h" |
+#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_source.h" |
#include "content/public/browser/notification_types.h" |
@@ -362,6 +363,8 @@ bool WrenchMenuModel::IsCommandIdChecked(int command_id) const { |
return browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); |
} else if (command_id == IDC_PROFILING_ENABLED) { |
return Profiling::BeingProfiled(); |
+ } else if (command_id == IDC_TOGGLE_REQUEST_TABLET_SITE) { |
+ return chrome::IsRequestingTabletSite(browser_); |
} |
return false; |
@@ -545,6 +548,13 @@ void WrenchMenuModel::Build() { |
AddItemWithStringId(IDC_OPTIONS, IDS_SETTINGS); |
+#if defined(OS_CHROMEOS) |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableRequestTabletSite)) |
+ AddCheckItemWithStringId(IDC_TOGGLE_REQUEST_TABLET_SITE, |
+ IDS_TOGGLE_REQUEST_TABLET_SITE); |
+#endif |
+ |
// On ChromeOS-Touch, we don't want the about/background pages menu options. |
#if defined(OS_CHROMEOS) |
if (!is_new_menu) |