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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_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
Index: chrome/browser/browsing_data/browsing_data_remover_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
index b2855bd85cc041e65975bb0b8dd65b149b42bb51..5c02dcb9dd46d2b4b8c2a55ded720ff975bc1472 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -446,7 +446,7 @@ class RemoveSafeBrowsingCookieTester : public RemoveCookieTester {
safe_browsing::SafeBrowsingService::CreateSafeBrowsingService();
browser_process_->SetSafeBrowsingService(sb_service.get());
sb_service->Initialize();
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Make sure the safe browsing cookie store has no cookies.
// TODO(mmenke): Is this really needed?
@@ -462,7 +462,7 @@ class RemoveSafeBrowsingCookieTester : public RemoveCookieTester {
virtual ~RemoveSafeBrowsingCookieTester() {
browser_process_->safe_browsing_service()->ShutDown();
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
browser_process_->SetSafeBrowsingService(nullptr);
}
@@ -732,7 +732,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
profiles.push_back(profile);
personal_data_manager_->SetProfiles(&profiles);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
std::vector<autofill::CreditCard> cards;
autofill::CreditCard card;
@@ -747,7 +747,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
cards.push_back(card);
personal_data_manager_->SetCreditCards(&cards);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
private:
@@ -1030,7 +1030,7 @@ class BrowsingDataRemoverTest : public testing::Test {
// the message loop is cleared out, before destroying the threads and loop.
// Otherwise we leak memory.
profile_.reset();
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
TestingBrowserProcess::GetGlobal()->SetLocalState(nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698