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

Unified Diff: extensions/browser/value_store/value_store_frontend_unittest.cc

Issue 2090063002: Remove calls to deprecated MessageLoop methods in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « extensions/browser/quota_service_unittest.cc ('k') | extensions/renderer/gc_callback_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/value_store/value_store_frontend_unittest.cc
diff --git a/extensions/browser/value_store/value_store_frontend_unittest.cc b/extensions/browser/value_store/value_store_frontend_unittest.cc
index f6a2ffaef0eaab00ad5133692fc6fbd379fc100a..2ceca06af3b7aab07665129d50b3029f2cf71fd5 100644
--- a/extensions/browser/value_store/value_store_frontend_unittest.cc
+++ b/extensions/browser/value_store/value_store_frontend_unittest.cc
@@ -11,6 +11,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
+#include "base/run_loop.h"
#include "content/public/test/test_browser_thread.h"
#include "extensions/browser/value_store/test_value_store_factory.h"
#include "extensions/common/extension_paths.h"
@@ -40,7 +41,7 @@ class ValueStoreFrontendTest : public testing::Test {
}
void TearDown() override {
- base::MessageLoop::current()->RunUntilIdle(); // wait for storage to delete
+ base::RunLoop().RunUntilIdle(); // wait for storage to delete
storage_.reset();
}
@@ -53,7 +54,7 @@ class ValueStoreFrontendTest : public testing::Test {
bool Get(const std::string& key, std::unique_ptr<base::Value>* output) {
storage_->Get(key, base::Bind(&ValueStoreFrontendTest::GetAndWait,
base::Unretained(this), output));
- base::MessageLoop::current()->Run(); // wait for GetAndWait
+ base::RunLoop().Run(); // wait for GetAndWait
return !!output->get();
}
« no previous file with comments | « extensions/browser/quota_service_unittest.cc ('k') | extensions/renderer/gc_callback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698