diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-16 10:07:16 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-16 10:44:08 +0000 |
commit | 9424dc7ceeccf6e6d5edc7757edb39a7ae4983ab (patch) | |
tree | d611d8fea9a11b9ab98bf9cc911d061f2449c2ad | |
parent | ef0a09b990f6d65b7b8b52b6f0ac098c805c9692 (diff) | |
download | qtwebengine-chromium-5.15.0-beta2.tar.gz |
Fix build with spell-checking disabledv5.15.0-beta3v5.15.0-beta2
Task-number: QTBUG-82894
Change-Id: Ie5d8ddd9b0d68390d1d8d2415629c0e85e33351e
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r-- | chromium/chrome/browser/prefs/chrome_command_line_pref_store.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/chrome/browser/prefs/chrome_command_line_pref_store.cc b/chromium/chrome/browser/prefs/chrome_command_line_pref_store.cc index e632eaec4c5..77416604510 100644 --- a/chromium/chrome/browser/prefs/chrome_command_line_pref_store.cc +++ b/chromium/chrome/browser/prefs/chrome_command_line_pref_store.cc @@ -20,14 +20,18 @@ #include "build/build_config.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/pref_names.h" -#include "components/language/core/browser/pref_names.h" #include "components/proxy_config/proxy_config_dictionary.h" #include "components/proxy_config/proxy_config_pref_names.h" +#include "components/spellcheck/spellcheck_buildflags.h" #include "content/public/common/content_switches.h" #include "services/network/public/cpp/network_switches.h" #include "ui/base/ui_base_switches.h" #include "ui/display/display_switches.h" +#if BUILDFLAG(ENABLE_SPELLCHECK) +#include "components/language/core/browser/pref_names.h" +#endif + #if !defined(TOOLKIT_QT) #include "components/browser_sync/browser_sync_switches.h" #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h" @@ -41,7 +45,9 @@ const CommandLinePrefStore::SwitchToPreferenceMapEntry ChromeCommandLinePrefStore::string_switch_map_[] = { +#if BUILDFLAG(ENABLE_SPELLCHECK) {switches::kLang, language::prefs::kApplicationLocale}, +#endif #if !defined(TOOLKIT_QT) {data_reduction_proxy::switches::kDataReductionProxy, data_reduction_proxy::prefs::kDataReductionProxy}, |