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

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

Issue 11198025: Site specific secondary tiles for Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 8 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/metro_pin_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index fbc0859bab42e1ab68649d47b42ff6daaf097562..8eb63e2d1ba63c1cfecee5c04683b11b2f5a1033 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -45,7 +45,6 @@
#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"
@@ -80,6 +79,7 @@
#if defined(OS_WIN)
#include "base/win/metro.h"
+#include "chrome/browser/ui/metro_pin_tab_helper_win.h"
#endif
namespace {
@@ -651,8 +651,10 @@ bool CanBookmarkAllTabs(const Browser* browser) {
}
void TogglePagePinnedToStartScreen(Browser* browser) {
+#if defined(OS_WIN)
MetroPinTabHelper::FromWebContents(GetActiveWebContents(browser))->
TogglePinnedToStartScreen();
+#endif
}
void SavePage(Browser* browser) {
« no previous file with comments | « no previous file | chrome/browser/ui/metro_pin_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698