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

Unified Diff: chrome/browser/extensions/extension_browsertest.cc

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more test fixes Created 8 years, 6 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/extensions/extension_browsertest.cc
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc
index 5faf4b39fa7d54022144bc93ece6409a5b89ab2f..8c527659c74b1ee2936724e960fc8a74d7f7d913 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -139,6 +139,10 @@ const Extension* ExtensionBrowserTest::LoadExtensionWithOptions(
}
}
+ // After chrome::NOTIFICATION_EXTENSION_LOADED there are still remaining tasks
+ // that need to complete for extensions to be in a settled load state.
+ ui_test_utils::RunAllPendingInMessageLoop();
+
if (!WaitForExtensionViewsToLoad())
return NULL;

Powered by Google App Engine
This is Rietveld 408576698