Prerender: Protect PrerenderBrowserTest::request_count_by_path_ with base::Lock
PrerenderBrowserTest::request_count_by_path_ is accessed from MonitorResourceRequest() and GetRequestCount(). These functions are called from different threads: the UI thread and EmbeddedTestServer::io_thread_. Therefore, the field should have been protected by a lock. Bug: 1158659 Change-Id: I491f7a60b24c4652c4278f46129976eccb81fecd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2592289Reviewed-by:Matt Falkenhagen <falken@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#836981}
Showing
Please register or sign in to comment