| Index: chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| index 68e5cfa85c092d1abd3a1104759dcf8bc81cf169..cc6901a794fa41c8a5d0d0848e1430a906def11b 100644
|
| --- a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| @@ -219,12 +219,12 @@ void DownloadShelfGtk::Closed() {
|
| download->IsCancelled() ||
|
| download->IsInterrupted();
|
| if (is_transfer_done &&
|
| - download->safety_state() != DownloadItem::DANGEROUS) {
|
| + download->GetSafetyState() != DownloadItem::DANGEROUS) {
|
| RemoveDownloadItem(download_items_[i]);
|
| } else {
|
| // We set all remaining items as "opened", so that the shelf will auto-
|
| // close in the future without the user clicking on them.
|
| - download->set_opened(true);
|
| + download->SetOpened(true);
|
| ++i;
|
| }
|
| }
|
| @@ -303,7 +303,7 @@ void DownloadShelfGtk::OnButtonClick(GtkWidget* button) {
|
| void DownloadShelfGtk::AutoCloseIfPossible() {
|
| for (std::vector<DownloadItemGtk*>::iterator iter = download_items_.begin();
|
| iter != download_items_.end(); ++iter) {
|
| - if (!(*iter)->get_download()->opened())
|
| + if (!(*iter)->get_download()->GetOpened())
|
| return;
|
| }
|
|
|
|
|