Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc |
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc |
index f04370b3a6799a7fba686d20b40424350c0f1d72..0de29c0241392ac4022af1d3bda16ff234c97b62 100644 |
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc |
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc |
@@ -4,9 +4,11 @@ |
#include "base/bind.h" |
#include "base/location.h" |
+#include "base/logging.h" |
#include "base/macros.h" |
#include "base/message_loop/message_loop.h" |
#include "base/single_thread_task_runner.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h" |
#include "chrome/browser/chromeos/login/lock/screen_locker.h" |
@@ -94,9 +96,10 @@ class ReauthHandler : public content::NotificationObserver, |
// chromeos::AuthStatusConsumer: |
void OnAuthSuccess(const chromeos::UserContext& user_context) override { |
+ DCHECK(base::MessageLoopForUI::IsCurrent()); |
callback_.Run(user_context); |
// Schedule deletion. |
- base::MessageLoopForUI::current()->task_runner()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(&EndReauthAttempt)); |
} |