Skip to content

Commit

Permalink
alloy-win: Disable the WinUseBrowserSpellChecker feature (see issue c…
Browse files Browse the repository at this point in the history
…hromiumembedded#3055)

Workaround until support for the Windows 10+ spellcheck service is added for
the Alloy runtime.
  • Loading branch information
amaitland authored and magreenblatt committed Oct 4, 2021
1 parent 1d9e261 commit b356923
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libcef/common/alloy/alloy_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "components/component_updater/component_updater_paths.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/embedder_support/switches.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "components/viz/common/features.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
Expand Down Expand Up @@ -250,6 +251,12 @@ bool AlloyMainDelegate::BasicStartupComplete(int* exit_code) {
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()) {
DCHECK(!base::FeatureList::GetInstance());
std::string disable_features_str =
Expand Down

0 comments on commit b356923

Please sign in to comment.