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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper_unittest.cc

Issue 10444125: Valgrind: Fix a leak in OneClickSigninHelperTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/sync/one_click_signin_helper_unittest.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
index 7622cf2ff0ad5ba29ab990d3ec1bcc566a834f1f..a89b6fce84264c688781c791159d4e075b211bdc 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
@@ -67,6 +67,7 @@ void OneClickSigninHelperTest::TearDown() {
web_contents_.reset();
profile_.reset();
ui_thread_.reset();
+ MessageLoop::current()->RunAllPending();
Roger Tawa OOO till Jul 10th 2012/06/01 13:56:42 Are you sure this should/can be done after destroy
James Hawkins 2012/06/01 23:53:13 In what context are you asking this question? Wha
Roger Tawa OOO till Jul 10th 2012/06/04 14:50:40 My concern is calling RunAllPending() after the de
}
void OneClickSigninHelperTest::MarkCurrentThreadAsUIThread() {

Powered by Google App Engine
This is Rietveld 408576698