Index: components/omnibox/browser/autocomplete_provider_unittest.cc |
diff --git a/components/omnibox/browser/autocomplete_provider_unittest.cc b/components/omnibox/browser/autocomplete_provider_unittest.cc |
index e3f3a3ffba289833ff12e808dd51ff2a5d8241c5..47107431409f337b2bd70a566c38b6b5e32ebe6d 100644 |
--- a/components/omnibox/browser/autocomplete_provider_unittest.cc |
+++ b/components/omnibox/browser/autocomplete_provider_unittest.cc |
@@ -74,7 +74,7 @@ class AutocompleteProviderClientWithClosure |
AutocompleteController* controller) override { |
if (!closure_.is_null()) |
closure_.Run(); |
- if (base::MessageLoop::current()->is_running()) |
+ if (base::RunLoop::IsRunningOnCurrentThread()) |
base::MessageLoop::current()->QuitWhenIdle(); |
} |