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

Unified Diff: chrome/browser/automation/testing_automation_provider.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 | « build/common.gypi ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 1b2b47ab2d351e7df892c7c758608fd763f43600..a6011e3a432c87cf18d54f53f16b93c2656b960d 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -1308,9 +1308,7 @@ void TestingAutomationProvider::GetShelfVisibility(int handle, bool* visible) {
if (browser_tracker_->ContainsHandle(handle)) {
Browser* browser = browser_tracker_->GetResource(handle);
if (browser) {
-#if defined(OS_CHROMEOS) && defined(TOUCH_UI)
- *visible = ActiveDownloadsUI::GetPopup(NULL);
-#elif defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS)
*visible = ActiveDownloadsUI::GetPopup();
#else
*visible = browser->window()->IsDownloadShelfVisible();
@@ -2185,15 +2183,7 @@ void TestingAutomationProvider::SetShelfVisibility(int handle, bool visible) {
if (browser_tracker_->ContainsHandle(handle)) {
Browser* browser = browser_tracker_->GetResource(handle);
if (browser) {
-#if defined(OS_CHROMEOS) && defined(TOUCH_UI)
- Browser* browser_download = NULL;
- TabContents* download_contents =
- ActiveDownloadsUI::GetPopup(&browser_download);
- if (!download_contents && visible)
- ActiveDownloadsUI::OpenPopup(browser_download->profile());
- if (download_contents && !visible)
- browser_download->CloseTabContents(download_contents);
-#elif defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS)
Browser* popup_browser = ActiveDownloadsUI::GetPopup();
if (!popup_browser && visible)
ActiveDownloadsUI::OpenPopup(browser->profile());
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698