mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
alloy-win: Disable the WinUseBrowserSpellChecker feature (see issue #3055)
Workaround until support for the Windows 10+ spellcheck service is added for the Alloy runtime.
This commit is contained in:
committed by
Marshall Greenblatt
parent
56afb712da
commit
192276af56
@@ -31,6 +31,7 @@
|
|||||||
#include "components/component_updater/component_updater_paths.h"
|
#include "components/component_updater/component_updater_paths.h"
|
||||||
#include "components/content_settings/core/common/content_settings_pattern.h"
|
#include "components/content_settings/core/common/content_settings_pattern.h"
|
||||||
#include "components/embedder_support/switches.h"
|
#include "components/embedder_support/switches.h"
|
||||||
|
#include "components/spellcheck/common/spellcheck_features.h"
|
||||||
#include "components/viz/common/features.h"
|
#include "components/viz/common/features.h"
|
||||||
#include "content/public/common/content_features.h"
|
#include "content/public/common/content_features.h"
|
||||||
#include "content/public/common/content_switches.h"
|
#include "content/public/common/content_switches.h"
|
||||||
@@ -250,6 +251,12 @@ bool AlloyMainDelegate::BasicStartupComplete(int* exit_code) {
|
|||||||
disable_features.push_back(features::kCalculateNativeWinOcclusion.name);
|
disable_features.push_back(features::kCalculateNativeWinOcclusion.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (spellcheck::kWinUseBrowserSpellChecker.default_state ==
|
||||||
|
base::FEATURE_ENABLED_BY_DEFAULT) {
|
||||||
|
// TODO: Add support for windows spellcheck service (see issue #3055).
|
||||||
|
disable_features.push_back(spellcheck::kWinUseBrowserSpellChecker.name);
|
||||||
|
}
|
||||||
|
|
||||||
if (!disable_features.empty()) {
|
if (!disable_features.empty()) {
|
||||||
DCHECK(!base::FeatureList::GetInstance());
|
DCHECK(!base::FeatureList::GetInstance());
|
||||||
std::string disable_features_str =
|
std::string disable_features_str =
|
||||||
|
Reference in New Issue
Block a user