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

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

Issue 10801006: Allow secondary tiles to be unpinned. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove NULL check Created 8 years, 5 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 | « chrome/browser/ui/browser_commands.cc ('k') | 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_win.cc
diff --git a/chrome/browser/ui/browser_win.cc b/chrome/browser/ui/browser_win.cc
index 04e203f4523cfeea32415081ebbd8f6c016e88ff..b4498b023c43e14567cef79eb9b99e657643a045 100644
--- a/chrome/browser/ui/browser_win.cc
+++ b/chrome/browser/ui/browser_win.cc
@@ -58,30 +58,6 @@ void NewIncognitoWindow(Browser* browser) {
NewEmptyWindow(browser->profile()->GetOffTheRecordProfile());
}
-void PinCurrentPageToStartScreen(Browser* browser) {
- HMODULE metro_module = base::win::GetMetroModule();
- if (metro_module) {
- GURL url;
- string16 title;
- TabContents* tab = chrome::GetActiveTabContents(browser);
- bookmark_utils::GetURLAndTitleToBookmark(tab->web_contents(), &url, &title);
-
- typedef BOOL (*MetroPinUrlToStartScreen)(const string16&, const string16&);
- MetroPinUrlToStartScreen metro_pin_url_to_start_screen =
- reinterpret_cast<MetroPinUrlToStartScreen>(
- ::GetProcAddress(metro_module, "MetroPinUrlToStartScreen"));
- if (!metro_pin_url_to_start_screen) {
- NOTREACHED();
- return;
- }
-
- VLOG(1) << __FUNCTION__ << " calling pin with title: " << title
- << " and url " << UTF8ToUTF16(url.spec());
- metro_pin_url_to_start_screen(title, UTF8ToUTF16(url.spec()));
- return;
- }
-}
-
} // namespace chrome
void Browser::SetMetroSnapMode(bool enable) {
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/metro_pin_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698