12345678910111213141516171819202122232425 |
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: Samuel Attard <[email protected]>
- Date: Wed, 23 Oct 2019 11:43:58 -0700
- Subject: remove usage of incognito APIs in the spellchecker
- chrome::GetBrowserContextRedirectedInIncognito is not available in
- Electron nor do we want it to be. We could potentially upstream a
- change to move more of //chrome spellchecker logic into //components so
- that we can further separate our dependency from //chrome.
- diff --git a/chrome/browser/spellchecker/spellcheck_factory.cc b/chrome/browser/spellchecker/spellcheck_factory.cc
- index 229f29e47b326e6ef4ef28e0d3037f5cf58e34f3..cf9c14cddfdf94d3819f42918ac3687b7b005e44 100644
- --- a/chrome/browser/spellchecker/spellcheck_factory.cc
- +++ b/chrome/browser/spellchecker/spellcheck_factory.cc
- @@ -71,7 +71,10 @@ void SpellcheckServiceFactory::RegisterProfilePrefs(
-
- content::BrowserContext* SpellcheckServiceFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- + return context;
- +#if 0
- return chrome::GetBrowserContextRedirectedInIncognito(context);
- +#endif
- }
-
- bool SpellcheckServiceFactory::ServiceIsNULLWhileTesting() const {
|