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

Unified Diff: ui/ui_controls/ui_controls_internal_win.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: ui/ui_controls/ui_controls_internal_win.cc
diff --git a/ui/ui_controls/ui_controls_internal_win.cc b/ui/ui_controls/ui_controls_internal_win.cc
index 37e0d1aa713b39c9a0812a6f1a7bc35576ca87b5..dc583f43eec97a81e3556e69c745b50aabd25419 100644
--- a/ui/ui_controls/ui_controls_internal_win.cc
+++ b/ui/ui_controls/ui_controls_internal_win.cc
@@ -135,7 +135,10 @@ void InputDispatcher::MatchingMessageFound() {
}
void InputDispatcher::NotifyTask() {
- task_.Run();
+ if (!task_.is_null()) {
+ task_.Run();
+ task_.Reset();
jar (doing other things) 2012/06/08 01:05:37 Why did this change?
jbates 2012/06/13 22:11:20 I'll undo this. I just noticed there's a DCHECK i
+ }
Release();
}
« chrome/test/base/ui_test_utils.h ('K') | « content/test/test_navigation_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698