Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 69742447fb240490da57651a3dde805f8892823d..da76670c29e504f5840b57f9da980fda23e83f2f 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -237,9 +237,10 @@ void DownloadItemView::StartDownloadProgress() {
if (progress_timer_.IsRunning())
return;
progress_start_time_ = base::TimeTicks::Now();
- progress_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(
- DownloadShelf::kProgressRateMs),
- this, &DownloadItemView::SchedulePaint);
+ progress_timer_.Start(
+ FROM_HERE,
+ base::TimeDelta::FromMilliseconds(DownloadShelf::kProgressRateMs),
+ base::Bind(&DownloadItemView::SchedulePaint, base::Unretained(this)));
}
void DownloadItemView::StopDownloadProgress() {
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.h ('k') | chrome/browser/ui/views/download/download_item_view_md.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698