Index: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc |
diff --git a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc |
index a25b311525a948e35dcc6658f4660725053b4ee3..ab12bb7df0a237c2a4c74406005b7aa1f2053847 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc |
@@ -155,7 +155,7 @@ class OmniboxViewTest : public InProcessBrowserTest, |
// history::HisoryServiceObserver |
void OnHistoryServiceLoaded( |
history::HistoryService* history_service) override { |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
protected: |
@@ -369,12 +369,12 @@ class OmniboxViewTest : public InProcessBrowserTest, |
default: |
FAIL() << "Unexpected notification type"; |
} |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
void OnURLsModified(history::HistoryService* history_service, |
const history::URLRows& changed_urls) override { |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
private: |