summaryrefslogtreecommitdiffstats
path: root/src/core/devtools_frontend_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/devtools_frontend_qt.cpp')
-rw-r--r--src/core/devtools_frontend_qt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/devtools_frontend_qt.cpp b/src/core/devtools_frontend_qt.cpp
index 6cae5ab8b..b4f3f6993 100644
--- a/src/core/devtools_frontend_qt.cpp
+++ b/src/core/devtools_frontend_qt.cpp
@@ -364,6 +364,7 @@ void DevToolsFrontendQt::CreateJsonPreferences(bool clear)
JsonPrefStore *jsonPrefStore = new JsonPrefStore(
browserContext->GetPath().Append(FILE_PATH_LITERAL("devtoolsprefs.json")));
// We effectively clear the preferences by not calling ReadPrefs
+ base::ScopedAllowBlockingForTesting allowBlocking;
if (!clear)
jsonPrefStore->ReadPrefs();