123456789101112131415161718192021222324252627282930313233 |
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: Calvin Watford <[email protected]>
- Date: Fri, 28 Apr 2023 17:06:30 -0600
- Subject: fix: remove profiles from spellcheck_service
- Electron doesn't support profiles.
- diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc
- index 979630ba7ffe84d78804a02b832ce7787aecf2d9..3b1cdaab5d3229c802c8da53a4fa17a464978391 100644
- --- a/chrome/browser/spellchecker/spellcheck_service.cc
- +++ b/chrome/browser/spellchecker/spellcheck_service.cc
- @@ -21,8 +21,10 @@
- #include "base/values.h"
- #include "build/build_config.h"
- #include "build/chromeos_buildflags.h"
- +#if 0
- #include "chrome/browser/profiles/profile.h"
- #include "chrome/browser/profiles/profiles_state.h"
- +#endif
- #include "chrome/browser/spellchecker/spellcheck_factory.h"
- #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h"
- #include "components/language/core/browser/pref_names.h"
- @@ -67,7 +69,10 @@ SpellcheckService::SpellCheckerBinder& GetSpellCheckerBinderOverride() {
- // Only record spelling-configuration metrics for profiles in which the user
- // can configure spelling.
- bool RecordSpellingConfigurationMetrics(content::BrowserContext* context) {
- +#if 0
- return profiles::IsRegularUserProfile(Profile::FromBrowserContext(context));
- +#endif
- + return true;
- }
-
- } // namespace
|