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

Unified Diff: content/browser/loader/async_revalidation_manager_browsertest.cc

Issue 2537893002: Add thread checking to RunLoop, deprecate MessageLoopRunner. (Closed)
Patch Set: Fix errors caught by ThreadChecker. Created 4 years 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: content/browser/loader/async_revalidation_manager_browsertest.cc
diff --git a/content/browser/loader/async_revalidation_manager_browsertest.cc b/content/browser/loader/async_revalidation_manager_browsertest.cc
index 2646222c750da4b527c9fd849be1d341c2ba7c40..2a9b8c33b38508834add590b22714eb3ec2faf8e 100644
--- a/content/browser/loader/async_revalidation_manager_browsertest.cc
+++ b/content/browser/loader/async_revalidation_manager_browsertest.cc
@@ -90,8 +90,10 @@ class AsyncRevalidationManagerBrowserTest : public ContentBrowserTest {
// The second time this handler is run is the async revalidation. Tests can
// use this for synchronisation.
- if (version == 2)
- run_loop_.Quit();
+ if (version == 2) {
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
+ run_loop_.QuitClosure());
+ }
return std::move(http_response);
}

Powered by Google App Engine
This is Rietveld 408576698