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

Unified Diff: chrome/browser/safe_browsing/download_protection_service_unittest.cc

Issue 1395103003: Don't use base::MessageLoop::{Quit,QuitClosure} in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/safe_browsing/download_protection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service_unittest.cc b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
index cd27712f50375a0af74f718dea7ce5121f8fb9a9..2606c2f8d6a97058dd2c7b93023885167a91ea53 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -343,9 +343,7 @@ class DownloadProtectionServiceTest : public testing::Test {
base::Unretained(this)));
}
- void QuitMessageLoop() {
- base::MessageLoop::current()->Quit();
- }
+ void QuitMessageLoop() { base::MessageLoop::current()->QuitWhenIdle(); }
void PostRunMessageLoopTask(BrowserThread::ID thread) {
BrowserThread::PostTask(
@@ -377,7 +375,7 @@ class DownloadProtectionServiceTest : public testing::Test {
DownloadProtectionService::DownloadCheckResult result) {
result_ = result;
has_result_ = true;
- MessageLoop::current()->Quit();
+ MessageLoop::current()->QuitWhenIdle();
}
void SyncCheckDoneCallback(

Powered by Google App Engine
This is Rietveld 408576698