| Index: ui/views/controls/throbber.cc
|
| diff --git a/ui/views/controls/throbber.cc b/ui/views/controls/throbber.cc
|
| index 635ff88a0bb12128d38d4db13b458ed804da64ac..5970290808ac0770ee45973ed4b55411672ed742 100644
|
| --- a/ui/views/controls/throbber.cc
|
| +++ b/ui/views/controls/throbber.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "ui/views/controls/throbber.h"
|
|
|
| +#include "base/bind.h"
|
| +#include "base/location.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/gfx/animation/tween.h"
|
| #include "ui/gfx/canvas.h"
|
| @@ -39,8 +41,8 @@ void Throbber::Start() {
|
|
|
| start_time_ = base::TimeTicks::Now();
|
| const int kFrameTimeMs = 30;
|
| - timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kFrameTimeMs), this,
|
| - &Throbber::SchedulePaint);
|
| + timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(kFrameTimeMs),
|
| + base::Bind(&Throbber::SchedulePaint, base::Unretained(this)));
|
| SchedulePaint(); // paint right away
|
| }
|
|
|
|
|