From 585b6bdeaf4104d26311f09dbb99f5085b5becb6 Mon Sep 17 00:00:00 2001 From: "bauerb@chromium.org" Date: Fri, 7 May 2010 11:49:08 +0000 Subject: Add AutomationMsg_WaitForDownloadShelfVisibilityChange and use it in UITestBase for the download tests. This should decrease flakiness of download tests. TEST=DownloadTest.*, especially DownloadTest.[Dont]CloseNewTab* BUG=43066 Review URL: http://codereview.chromium.org/1933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46681 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/browser.cc') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 0561187..3ffceda 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -2604,6 +2604,11 @@ void Browser::UpdateTargetURL(TabContents* source, const GURL& url) { void Browser::UpdateDownloadShelfVisibility(bool visible) { if (GetStatusBubble()) GetStatusBubble()->UpdateDownloadShelfVisibility(visible); + + NotificationService::current()->Notify( + NotificationType::DOWNLOAD_SHELF_VISIBILITY_CHANGED, + Source(this), + NotificationService::NoDetails()); } void Browser::ContentsZoomChange(bool zoom_in) { -- cgit v1.1