Chromium Code Reviews| Index: chrome/browser/download/download_util.cc |
| diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc |
| index 05751ded1ff230e8b028cb2f9f6e1809025a5dfa..0fffcff72c95d11aad9a6238bf493fe20a8cf2f7 100644 |
| --- a/chrome/browser/download/download_util.cc |
| +++ b/chrome/browser/download/download_util.cc |
| @@ -70,6 +70,7 @@ |
| #include "views/widget/widget_gtk.h" |
| #elif defined(TOOLKIT_GTK) |
| #include "chrome/browser/ui/gtk/custom_drag.h" |
| +#include "chrome/browser/ui/gtk/dock_service.h" |
| #endif // defined(TOOLKIT_GTK) |
| #endif // defined(TOOLKIT_USES_GTK) |
| @@ -756,6 +757,12 @@ void UpdateAppIconDownloadProgress(int download_count, |
| else |
| taskbar->SetProgressValue(frame, static_cast<int>(progress * 100), 100); |
| } |
| +#elif defined(TOOLKIT_GTK) |
| + DockService* service = DockService::GetService(); |
|
Evan Martin
2011/04/26 00:33:52
This appears to make blocking disk calls. Do we c
Elliot Glaysher
2011/04/26 01:02:39
I'm not sure. The dlsym parts (I think) can be run
|
| + if (service) { |
| + service->SetDownloadCount(download_count); |
| + service->SetProgressPercent(progress); |
| + } |
| #endif |
| } |
| #endif |