Index: chrome/browser/password_manager/native_backend_libsecret_unittest.cc |
diff --git a/chrome/browser/password_manager/native_backend_libsecret_unittest.cc b/chrome/browser/password_manager/native_backend_libsecret_unittest.cc |
index 84480e940a64b372a81333fa4d5c3168b49ef0ff..50ee221e6009b6050c7aa9d46fdf21fdb72f4c73 100644 |
--- a/chrome/browser/password_manager/native_backend_libsecret_unittest.cc |
+++ b/chrome/browser/password_manager/native_backend_libsecret_unittest.cc |
@@ -7,6 +7,7 @@ |
#include <stdint.h> |
#include "base/location.h" |
+#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "base/stl_util.h" |
#include "base/strings/string_number_conversions.h" |
@@ -338,12 +339,12 @@ class NativeBackendLibsecretTest : public testing::Test { |
void TearDown() override { |
base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
ASSERT_TRUE(global_mock_libsecret_items); |
global_mock_libsecret_items = nullptr; |
} |
- void RunUIThread() { base::MessageLoop::current()->Run(); } |
+ void RunUIThread() { base::RunLoop().Run(); } |
void CheckUint32Attribute(const MockSecretItem* item, |
const std::string& attribute, |