summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/download_shelf_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/download_shelf_gtk.cc')
-rw-r--r--chrome/browser/gtk/download_shelf_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/download_shelf_gtk.cc b/chrome/browser/gtk/download_shelf_gtk.cc
index cfeb22e..d95cb46 100644
--- a/chrome/browser/gtk/download_shelf_gtk.cc
+++ b/chrome/browser/gtk/download_shelf_gtk.cc
@@ -49,7 +49,7 @@ const int kShelfAnimationDurationMs = 120;
} // namespace
DownloadShelfGtk::DownloadShelfGtk(Browser* browser, GtkWidget* parent)
- : DownloadShelf(browser),
+ : browser_(browser),
is_showing_(false),
theme_provider_(GtkThemeProvider::GetFrom(browser->profile())) {
// Logically, the shelf is a vbox that contains two children: a one pixel
@@ -213,6 +213,6 @@ void DownloadShelfGtk::OnButtonClick(GtkWidget* button,
shelf->Close();
} else {
// The link button was clicked.
- shelf->ShowAllDownloads();
+ shelf->browser_->ShowDownloadsTab();
}
}