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

Unified Diff: chrome/browser/speech/speech_recognition_bubble.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/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));
}

Powered by Google App Engine
This is Rietveld 408576698