summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 11:49:08 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 11:49:08 +0000
commit585b6bdeaf4104d26311f09dbb99f5085b5becb6 (patch)
tree737e492a12c1577ed730952080160fa07304fb12 /chrome/browser/browser.cc
parent88e71dc17b86efc2f4d70dee9a1bb4a71f86adc9 (diff)
downloadchromium_src-585b6bdeaf4104d26311f09dbb99f5085b5becb6.zip
chromium_src-585b6bdeaf4104d26311f09dbb99f5085b5becb6.tar.gz
chromium_src-585b6bdeaf4104d26311f09dbb99f5085b5becb6.tar.bz2
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
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc5
1 files changed, 5 insertions, 0 deletions
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<Browser>(this),
+ NotificationService::NoDetails());
}
void Browser::ContentsZoomChange(bool zoom_in) {