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

Unified Diff: content/public/test/browser_test_base.cc

Issue 2835233002: Fix integration tests in src/chrome and src/extensions so that we can turn on IO thread checks wi... (Closed)
Patch Set: ready for review Created 3 years, 8 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: content/public/test/browser_test_base.cc
diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
index 20b2bff184def651157b5dce54163c21fac36ef6..120f6fb243c6fa973619e3bddd368c433dd69957 100644
--- a/content/public/test/browser_test_base.cc
+++ b/content/public/test/browser_test_base.cc
@@ -349,7 +349,7 @@ void BrowserTestBase::ProxyRunTestOnMainThreadLoop() {
SetUpOnMainThread();
bool old_io_allowed_value = false;
if (!disable_io_checks_)
- base::ThreadRestrictions::SetIOAllowed(false);
+ old_io_allowed_value = base::ThreadRestrictions::SetIOAllowed(false);
RunTestOnMainThread();
if (!disable_io_checks_)
base::ThreadRestrictions::SetIOAllowed(old_io_allowed_value);

Powered by Google App Engine
This is Rietveld 408576698