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

Unified Diff: chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (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 | « no previous file | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc b/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
index 1573faa0c24d57c762d9ab727eaf1cf12db2b652..14f430e825298ecc89c81e0178fb1620995e1d9e 100644
--- a/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc
@@ -11,6 +11,7 @@
#include "base/files/file_util.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browsing_data/browsing_data_file_system_helper.h"
@@ -70,13 +71,13 @@ class BrowsingDataFileSystemHelperTest : public testing::Test {
helper_ = BrowsingDataFileSystemHelper::Create(
BrowserContext::GetDefaultStoragePartition(profile_.get())->
GetFileSystemContext());
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
canned_helper_ = new CannedBrowsingDataFileSystemHelper(profile_.get());
}
~BrowsingDataFileSystemHelperTest() override {
// Avoid memory leaks.
profile_.reset();
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
TestingProfile* GetProfile() {
@@ -84,9 +85,7 @@ class BrowsingDataFileSystemHelperTest : public testing::Test {
}
// Blocks on the current MessageLoop until Notify() is called.
- void BlockUntilNotified() {
- base::MessageLoop::current()->Run();
- }
+ void BlockUntilNotified() { base::RunLoop().Run(); }
// Unblocks the current MessageLoop. Should be called in response to some sort
// of async activity in a callback method.
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698