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 f2d7be66c2f743a0000fe8fcb34a4d9e7dabd32e..adb33d3d55e6de921e628360c6c494c616122204 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -41,6 +41,7 @@ |
#if defined(OS_WIN) |
#include "base/win/metro.h" |
+#include "chrome/browser/ui/metro_pin_tab_helper.h" |
#endif |
using content::WebContents; |
@@ -351,7 +352,7 @@ void BrowserCommandController::ExecuteCommandWithDisposition( |
case IDC_BOOKMARK_PAGE: |
BookmarkCurrentPage(browser_); |
break; |
- case IDC_PIN_TO_START_SCREEN: |
+ case IDC_METRO_PIN_TO_START_SCREEN: |
TogglePagePinnedToStartScreen(browser_); |
break; |
case IDC_BOOKMARK_ALL_TABS: |
@@ -870,6 +871,10 @@ void BrowserCommandController::UpdateCommandsForTabState() { |
// Page-related commands |
window()->SetStarredState( |
current_tab_contents->bookmark_tab_helper()->is_starred()); |
+#if defined(OS_WIN) |
+ window()->SetMetroPinnedState( |
+ current_tab_contents->metro_pin_tab_helper()->is_pinned()); |
+#endif |
window()->SetZoomIconState( |
current_tab_contents->zoom_controller()->zoom_icon_state()); |
window()->SetZoomIconTooltipPercent( |
@@ -930,7 +935,7 @@ void BrowserCommandController::UpdateCommandsForBookmarkEditing() { |
CanBookmarkCurrentPage(browser_)); |
command_updater_.UpdateCommandEnabled(IDC_BOOKMARK_ALL_TABS, |
CanBookmarkAllTabs(browser_)); |
- command_updater_.UpdateCommandEnabled(IDC_PIN_TO_START_SCREEN, |
+ command_updater_.UpdateCommandEnabled(IDC_METRO_PIN_TO_START_SCREEN, |
true); |
} |