Commit fa94cb09 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Enable brotli


Enable brotli if enabled in content features (which it is by default).

Task-number: QTBUG-60049
Change-Id: I67ee51be47de4df0960e378f74c323ef30a7b25a
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@qt.io>
Showing with 2 additions and 0 deletions
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include "base/threading/sequenced_worker_pool.h" #include "base/threading/sequenced_worker_pool.h"
#include "content/public/browser/browser_thread.h" #include "content/public/browser/browser_thread.h"
#include "content/public/browser/cookie_store_factory.h" #include "content/public/browser/cookie_store_factory.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h" #include "content/public/common/content_switches.h"
#include "net/base/cache_type.h" #include "net/base/cache_type.h"
#include "net/cert/cert_verifier.h" #include "net/cert/cert_verifier.h"
...@@ -147,6 +148,7 @@ net::URLRequestContext *URLRequestContextGetterQt::GetURLRequestContext() ...@@ -147,6 +148,7 @@ net::URLRequestContext *URLRequestContextGetterQt::GetURLRequestContext()
m_networkDelegate.reset(new NetworkDelegateQt(this)); m_networkDelegate.reset(new NetworkDelegateQt(this));
m_urlRequestContext->set_network_delegate(m_networkDelegate.get()); m_urlRequestContext->set_network_delegate(m_networkDelegate.get());
m_urlRequestContext->set_enable_brotli(base::FeatureList::IsEnabled(features::kBrotliEncoding));
QMutexLocker lock(&m_mutex); QMutexLocker lock(&m_mutex);
generateAllStorage(); generateAllStorage();
......
Supports Markdown
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