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

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

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/browser_feature_extractor_unittest.cc
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc b/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
index 4c2a58fb7093caf092907852da7b06c3a2b2ae1e..1d0b4bd287a99476e1240b5b9249463526425013 100644
--- a/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
+++ b/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
@@ -179,7 +179,8 @@ class BrowserFeatureExtractorTest : public ChromeRenderViewHostTestHarness {
// Feature extraction takes ownership of the request object
// and passes it along to the done callback in the end.
StartExtractMalwareFeatures(request);
- base::MessageLoopForUI::current()->Run();
+ ASSERT_TRUE(base::MessageLoopForUI::IsCurrent());
+ base::RunLoop().Run();
EXPECT_EQ(1U, success_.count(request));
EXPECT_TRUE(success_[request]);
}
« no previous file with comments | « chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc ('k') | chrome/browser/ui/views/color_chooser_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698