fix_remove_profiles_from_spellcheck_service.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Calvin Watford <[email protected]>
  3. Date: Fri, 28 Apr 2023 17:06:30 -0600
  4. Subject: fix: remove profiles from spellcheck_service
  5. Electron doesn't support profiles.
  6. diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc
  7. index 910534aac947890b16b176b10ac8eae9857bd2d7..1bb22b89b6ec4d620354bb7747c37cae9dd3a57e 100644
  8. --- a/chrome/browser/spellchecker/spellcheck_service.cc
  9. +++ b/chrome/browser/spellchecker/spellcheck_service.cc
  10. @@ -20,8 +20,10 @@
  11. #include "base/synchronization/waitable_event.h"
  12. #include "base/values.h"
  13. #include "build/build_config.h"
  14. +#if 0
  15. #include "chrome/browser/profiles/profile.h"
  16. #include "chrome/browser/profiles/profiles_state.h"
  17. +#endif
  18. #include "chrome/browser/spellchecker/spellcheck_factory.h"
  19. #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h"
  20. #include "components/language/core/browser/pref_names.h"
  21. @@ -66,7 +68,10 @@ SpellcheckService::SpellCheckerBinder& GetSpellCheckerBinderOverride() {
  22. // Only record spelling-configuration metrics for profiles in which the user
  23. // can configure spelling.
  24. bool RecordSpellingConfigurationMetrics(content::BrowserContext* context) {
  25. +#if 0
  26. return profiles::IsRegularUserProfile(Profile::FromBrowserContext(context));
  27. +#endif
  28. + return true;
  29. }
  30. } // namespace