summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/tabs/tabs_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/tabs/tabs_test.cc')
-rw-r--r--chrome/browser/extensions/api/tabs/tabs_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/tabs/tabs_test.cc b/chrome/browser/extensions/api/tabs/tabs_test.cc
index 43cd585..06e5571 100644
--- a/chrome/browser/extensions/api/tabs/tabs_test.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_test.cc
@@ -832,7 +832,7 @@ class ExtensionWindowLastFocusedTest : public ExtensionTabsTest {
// AppWindowRegistry::Observer:
void OnAppWindowActivated(AppWindow* app_window) override {
if (app_window_ == app_window && waiting_) {
- base::MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->QuitWhenIdle();
waiting_ = false;
}
}
@@ -864,7 +864,7 @@ class ExtensionWindowLastFocusedTest : public ExtensionTabsTest {
void OnWidgetActivationChanged(views::Widget* widget,
bool active) override {
if (widget_ == widget && waiting_) {
- base::MessageLoopForUI::current()->Quit();
+ base::MessageLoopForUI::current()->QuitWhenIdle();
waiting_ = false;
}
}