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

Unified Diff: chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc

Issue 2968723002: Prerender: Add timeout to appcache waiting in NoStatePrefetch browser test. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc
diff --git a/chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc b/chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc
index 7d6792b4d6045f80284f2265dedcee03fd434568..5cb5d6cb1affe7f5500e2a8c79872dc33f2ed5e6 100644
--- a/chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc
+++ b/chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc
@@ -120,6 +120,11 @@ class NoStatePrefetchBrowserTest
content::BrowserThread::IO, FROM_HERE,
base::BindOnce(WaitForAppcacheOnIO, manifest_url, appcache_service,
wait_loop.QuitClosure(), &found_manifest));
+ // There seems to be some flakiness in the appcache getting back to us, so
+ // use a timeout task to try the appcache query again.
+ content::BrowserThread::PostDelayedTask(
+ content::BrowserThread::UI, FROM_HERE, wait_loop.QuitClosure(),
+ base::TimeDelta::FromMilliseconds(2000));
wait_loop.Run();
} while (!found_manifest);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698