Index: chrome/browser/download/download_status_updater_gtk.cc |
diff --git a/chrome/browser/download/download_status_updater_gtk.cc b/chrome/browser/download/download_status_updater_gtk.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f045fff7696b9589d5118af4fdd0341710f0912 |
--- /dev/null |
+++ b/chrome/browser/download/download_status_updater_gtk.cc |
@@ -0,0 +1,16 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/download/download_status_updater.h" |
+ |
+#include "chrome/browser/ui/gtk/unity_service.h" |
+ |
+void DownloadStatusUpdater::UpdateAppIconDownloadProgress( |
+ content::DownloadItem* download) { |
+ float progress = 0; |
+ int download_count = 0; |
+ GetProgress(&progress, &download_count); |
+ unity::SetDownloadCount(download_count); |
+ unity::SetProgressFraction(progress); |
+} |