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

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

Issue 680313004: Cleanup: Make TogglePinnedToStartScreen() Windows only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | 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 dab47afe964b7729fbb903d9d35ac8386b6b147e..8ae3cc56bbc474dfe1f5174351bad3256e197268 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -510,6 +510,9 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
chrome::AttemptRestartToMetroMode();
}
break;
+ case IDC_PIN_TO_START_SCREEN:
+ TogglePagePinnedToStartScreen(browser_);
+ break;
#endif
#if defined(OS_MACOSX)
@@ -528,9 +531,6 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
case IDC_BOOKMARK_PAGE:
BookmarkCurrentPage(browser_);
break;
- case IDC_PIN_TO_START_SCREEN:
- TogglePagePinnedToStartScreen(browser_);
- break;
case IDC_BOOKMARK_ALL_TABS:
BookmarkAllTabs(browser_);
break;
@@ -1176,8 +1176,9 @@ void BrowserCommandController::UpdateCommandsForBookmarkEditing() {
CanBookmarkCurrentPage(browser_));
command_updater_.UpdateCommandEnabled(IDC_BOOKMARK_ALL_TABS,
CanBookmarkAllTabs(browser_));
- command_updater_.UpdateCommandEnabled(IDC_PIN_TO_START_SCREEN,
- true);
+#if defined(OS_WIN)
+ command_updater_.UpdateCommandEnabled(IDC_PIN_TO_START_SCREEN, true);
+#endif
}
void BrowserCommandController::UpdateCommandsForBookmarkBar() {
« no previous file with comments | « no previous file | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698