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

Unified Diff: chrome/browser/ui/app_list/app_list_controller_browsertest.cc

Issue 800023004: app_list: OnExtensionLoaded calls UpdateResults asynchronously rather than directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 5 years, 11 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/ui/app_list/app_list_controller_browsertest.cc
diff --git a/chrome/browser/ui/app_list/app_list_controller_browsertest.cc b/chrome/browser/ui/app_list/app_list_controller_browsertest.cc
index dc5e9df7f699ad6c07e8f593e96c9b910d8e8a0a..e47d90be33f280c905fd10260579081d50a8c16d 100644
--- a/chrome/browser/ui/app_list/app_list_controller_browsertest.cc
+++ b/chrome/browser/ui/app_list/app_list_controller_browsertest.cc
@@ -205,6 +205,9 @@ IN_PROC_BROWSER_TEST_F(AppListControllerSearchResultsBrowserTest,
// Now uninstall and ensure this browser test observes it.
UninstallExtension(extension->id());
+ // Allow async AppSearchProvider::UpdateResults to run.
+ base::RunLoop().RunUntilIdle();
+
EXPECT_FALSE(observed_result_);
StopWatchingResults();
service->DismissAppList();

Powered by Google App Engine
This is Rietveld 408576698