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

Unified Diff: chrome/browser/ui/webui/active_downloads_ui.cc

Issue 8678015: Touch constants and dead code removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied Sadrul's comments Created 9 years, 1 month 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/webui/active_downloads_ui.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/active_downloads_ui.cc
diff --git a/chrome/browser/ui/webui/active_downloads_ui.cc b/chrome/browser/ui/webui/active_downloads_ui.cc
index 65750e649e5f5991f98797983f7330560c5557f4..8073cc3b53be44ec956c29574df801ea07625fcb 100644
--- a/chrome/browser/ui/webui/active_downloads_ui.cc
+++ b/chrome/browser/ui/webui/active_downloads_ui.cc
@@ -369,33 +369,6 @@ ActiveDownloadsUI::ActiveDownloadsUI(TabContents* contents)
CreateActiveDownloadsUIHTMLSource());
}
-#if defined(TOUCH_UI)
-
-// static
-TabContents* ActiveDownloadsUI::OpenPopup(Profile* profile) {
- Browser* browser = Browser::GetOrCreateTabbedBrowser(profile);
- OpenURLParams params(GURL(chrome::kChromeUIActiveDownloadsURL), GURL(),
- SINGLETON_TAB, content::PAGE_TRANSITION_LINK, false);
- TabContents* download_contents = browser->OpenURL(params);
- browser->window()->Show();
- return download_contents;
-}
-
-TabContents* ActiveDownloadsUI::GetPopup(Browser** browser) {
- for (TabContentsIterator it; !it.done(); ++it) {
- TabContents* tab = it->tab_contents();
- const GURL& url = tab->GetURL();
- if (url.SchemeIs(chrome::kChromeUIScheme) &&
- url.host() == chrome::kChromeUIActiveDownloadsHost) {
- if (browser)
- *browser = it.browser();
- return tab;
- }
- }
- return NULL;
-}
-
-#else // defined(TOUCH_UI)
// static
Browser* ActiveDownloadsUI::OpenPopup(Profile* profile) {
Browser* browser = GetPopup();
@@ -443,7 +416,6 @@ Browser* ActiveDownloadsUI::GetPopup() {
}
return NULL;
}
-#endif // defined(TOUCH_UI)
const ActiveDownloadsUI::DownloadList& ActiveDownloadsUI::GetDownloads() const {
return handler_->downloads();
« no previous file with comments | « chrome/browser/ui/webui/active_downloads_ui.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698