| Index: chrome/browser/jankometer.cc
|
| diff --git a/chrome/browser/jankometer.cc b/chrome/browser/jankometer.cc
|
| index a5d841d9172b129ceee6ed4708f3cf7b3801020e..a159064b96a9b9913cbf512959f62a4d8b0cf620 100644
|
| --- a/chrome/browser/jankometer.cc
|
| +++ b/chrome/browser/jankometer.cc
|
| @@ -280,14 +280,14 @@ class UIJankObserver : public base::RefCountedThreadSafe<UIJankObserver>,
|
| // attach to the current thread, so this function can be invoked on another
|
| // thread to attach it.
|
| void AttachToCurrentThread() {
|
| - DCHECK_EQ(base::MessageLoop::current()->type(), base::MessageLoop::TYPE_UI);
|
| + DCHECK(base::MessageLoopForUI::IsCurrent());
|
| base::MessageLoopForUI::current()->AddObserver(this);
|
| base::MessageLoop::current()->AddTaskObserver(this);
|
| }
|
|
|
| // Detaches the observer to the current thread's message loop.
|
| void DetachFromCurrentThread() {
|
| - DCHECK_EQ(base::MessageLoop::current()->type(), base::MessageLoop::TYPE_UI);
|
| + DCHECK(base::MessageLoopForUI::IsCurrent());
|
| base::MessageLoop::current()->RemoveTaskObserver(this);
|
| base::MessageLoopForUI::current()->RemoveObserver(this);
|
| }
|
|
|