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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_browsertest.cc

Issue 11787025: bookmarks: Wait for bookmark model to load by using WaitForBookmarkModelToLoad() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/bookmarks/bookmark_browsertest.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_browsertest.cc b/chrome/browser/ui/bookmarks/bookmark_browsertest.cc
index 933e996d6fef07a90164d292dc5a4aa6fd4cfc55..5e8a7b29da7936de3268c3638fc039c6941df61c 100644
--- a/chrome/browser/ui/bookmarks/bookmark_browsertest.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_browsertest.cc
@@ -57,12 +57,7 @@ class BookmarkBrowsertest : public InProcessBrowserTest {
BookmarkModel* WaitForBookmarkModel(Profile* profile) {
BookmarkModel* bookmark_model =
BookmarkModelFactory::GetForProfile(profile);
- if (!bookmark_model->IsLoaded()) {
- content::WindowedNotificationObserver observer(
- chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED,
- content::NotificationService::AllSources());
- observer.Wait();
- }
+ ui_test_utils::WaitForBookmarkModelToLoad(bookmark_model);
return bookmark_model;
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698