| Index: chrome/browser/speech/speech_recognition_bubble.cc
|
| diff --git a/chrome/browser/speech/speech_recognition_bubble.cc b/chrome/browser/speech/speech_recognition_bubble.cc
|
| index 1144e9c0f1f7dbd182763fdd747637ea13d9cae9..5d35c0599535026e47a683e8620fbb9fe76f89c8 100644
|
| --- a/chrome/browser/speech/speech_recognition_bubble.cc
|
| +++ b/chrome/browser/speech/speech_recognition_bubble.cc
|
| @@ -177,13 +177,13 @@ void SpeechRecognitionBubbleBase::SetWarmUpMode() {
|
|
|
| void SpeechRecognitionBubbleBase::DoWarmingUpAnimationStep() {
|
| SetImage(g_images.Get().warm_up()[animation_step_]);
|
| - MessageLoop::current()->PostDelayedTask(
|
| + base::MessageLoop::current()->PostDelayedTask(
|
| FROM_HERE,
|
| base::Bind(&SpeechRecognitionBubbleBase::DoWarmingUpAnimationStep,
|
| - weak_factory_.GetWeakPtr()),
|
| - base::TimeDelta::FromMilliseconds(
|
| - animation_step_ == 0 ? kWarmingUpAnimationStartMs
|
| - : kWarmingUpAnimationStepMs));
|
| + weak_factory_.GetWeakPtr()),
|
| + base::TimeDelta::FromMilliseconds(animation_step_ == 0
|
| + ? kWarmingUpAnimationStartMs
|
| + : kWarmingUpAnimationStepMs));
|
| if (++animation_step_ >= static_cast<int>(g_images.Get().warm_up().size()))
|
| animation_step_ = 1; // Frame 0 is skipped during the animation.
|
| }
|
| @@ -206,10 +206,10 @@ void SpeechRecognitionBubbleBase::DoRecognizingAnimationStep() {
|
| SetImage(g_images.Get().spinner()[animation_step_]);
|
| if (++animation_step_ >= static_cast<int>(g_images.Get().spinner().size()))
|
| animation_step_ = 0;
|
| - MessageLoop::current()->PostDelayedTask(
|
| + base::MessageLoop::current()->PostDelayedTask(
|
| FROM_HERE,
|
| base::Bind(&SpeechRecognitionBubbleBase::DoRecognizingAnimationStep,
|
| - weak_factory_.GetWeakPtr()),
|
| + weak_factory_.GetWeakPtr()),
|
| base::TimeDelta::FromMilliseconds(kRecognizingAnimationStepMs));
|
| }
|
|
|
|
|