Commit f47f6c88 authored by Dominik Röttsches's avatar Dominik Röttsches Committed by Commit Bot

Fix a DCHECK in content_browsertests for FontUniqueNameLookup

Navigating to a URL and waiting for that to complete
requires sync primitives.

Change-Id: Iae111ac9ee2521de4054f82829f030f797cfaac4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627358Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662991}
parent 6b11975a
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "base/stl_util.h" #include "base/stl_util.h"
#include "base/test/scoped_feature_list.h" #include "base/test/scoped_feature_list.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "content/browser/devtools/protocol/devtools_protocol_test_support.h" #include "content/browser/devtools/protocol/devtools_protocol_test_support.h"
#include "content/browser/web_contents/web_contents_impl.h" #include "content/browser/web_contents/web_contents_impl.h"
...@@ -131,6 +132,7 @@ class FontUniqueNameBrowserTest : public DevToolsProtocolTest { ...@@ -131,6 +132,7 @@ class FontUniqueNameBrowserTest : public DevToolsProtocolTest {
#endif #endif
void LoadAndWait(const std::string& url) { void LoadAndWait(const std::string& url) {
base::ScopedAllowBlockingForTesting blocking_for_load;
ASSERT_TRUE(embedded_test_server()->Start()); ASSERT_TRUE(embedded_test_server()->Start());
TestNavigationObserver navigation_observer( TestNavigationObserver navigation_observer(
static_cast<WebContentsImpl*>(shell()->web_contents())); static_cast<WebContentsImpl*>(shell()->web_contents()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment