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

Unified Diff: chrome/browser/sync/test/integration/status_change_checker.cc

Issue 474273003: sync: Refactor bookmarks integration tests Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use RunLoop for favicon wait Created 6 years, 4 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/sync/test/integration/status_change_checker.cc
diff --git a/chrome/browser/sync/test/integration/status_change_checker.cc b/chrome/browser/sync/test/integration/status_change_checker.cc
index 7ad6d6b88335f99c59711136aa81af0f7af4b7b5..2559983124d39c3cfbc1d51ac5467d4d696c46c6 100644
--- a/chrome/browser/sync/test/integration/status_change_checker.cc
+++ b/chrome/browser/sync/test/integration/status_change_checker.cc
@@ -27,16 +27,11 @@ void StatusChangeChecker::StartBlockingWait() {
GetTimeoutDuration(),
base::Bind(&StatusChangeChecker::OnTimeout,
base::Unretained(this)));
-
- {
- base::MessageLoop* loop = base::MessageLoop::current();
- base::MessageLoop::ScopedNestableTaskAllower allow(loop);
- loop->Run();
- }
+ run_loop_.Run();
}
void StatusChangeChecker::StopWaiting() {
- base::MessageLoop::current()->QuitWhenIdle();
+ run_loop_.Quit();
}
void StatusChangeChecker::CheckExitCondition() {
« no previous file with comments | « chrome/browser/sync/test/integration/status_change_checker.h ('k') | chrome/browser/sync/test/integration/sync_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698