Index: chrome/browser/safe_browsing/client_side_detection_service_unittest.cc |
diff --git a/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc |
index ca40838f2cb28fb7531dcccf9f0fe2dabb3d819c..59411ccb72a6871c6e060fc1d354238819566dea 100644 |
--- a/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc |
+++ b/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc |
@@ -236,7 +236,7 @@ class ClientSideDetectionServiceTest : public testing::Test { |
void SendRequestDone(GURL phishing_url, bool is_phishing) { |
ASSERT_EQ(phishing_url, phishing_url_); |
is_phishing_ = is_phishing; |
- msg_loop_.Quit(); |
+ msg_loop_.QuitWhenIdle(); |
} |
void SendMalwareRequestDone(GURL original_url, GURL malware_url, |
@@ -244,7 +244,7 @@ class ClientSideDetectionServiceTest : public testing::Test { |
ASSERT_EQ(phishing_url_, original_url); |
confirmed_malware_url_ = malware_url; |
is_malware_ = is_malware; |
- msg_loop_.Quit(); |
+ msg_loop_.QuitWhenIdle(); |
} |
scoped_ptr<content::TestBrowserThread> browser_thread_; |