Chromium Code Reviews| Index: chrome/browser/ui/browser_commands.cc |
| diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
| index 5ff86c5562cc9ac64b3a00e77b1e6040b56f8396..ada6b1e6eb1c96721ff1381ee925c27824cbacfe 100644 |
| --- a/chrome/browser/ui/browser_commands.cc |
| +++ b/chrome/browser/ui/browser_commands.cc |
| @@ -41,6 +41,7 @@ |
| #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
| #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| +#include "chrome/browser/ui/metro_pin_tab_helper.h" |
| #include "chrome/browser/ui/omnibox/location_bar.h" |
| #include "chrome/browser/ui/search/search.h" |
| #include "chrome/browser/ui/search/search_model.h" |
| @@ -599,10 +600,11 @@ bool CanBookmarkAllTabs(const Browser* browser) { |
| return browser->tab_count() > 1 && CanBookmarkCurrentPage(browser); |
| } |
| -#if !defined(OS_WIN) |
| -void PinCurrentPageToStartScreen(Browser* browser) { |
| +void TogglePagePinnedToStartScreen(Browser* browser) { |
| + TabContents* current_tab = GetActiveTabContents(browser); |
| + if (current_tab) |
|
sky
2012/07/18 15:21:55
You shouldn't need a NULL check here.
|
| + current_tab->metro_pin_tab_helper()->TogglePinnedToStartScreen(); |
| } |
| -#endif |
| void SavePage(Browser* browser) { |
| content::RecordAction(UserMetricsAction("SavePage")); |