| Index: chrome/browser/spellchecker/spellcheck_factory.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_factory.cc b/chrome/browser/spellchecker/spellcheck_factory.cc
|
| index 40bea53608763c5857925d1ba5b98d78fcb993aa..87dabaf874eb10d130e87024ad47663e75d65a5e 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_factory.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "chrome/browser/spellchecker/spellcheck_service.h"
|
| @@ -90,8 +91,9 @@ void SpellcheckServiceFactory::RegisterUserPrefs(
|
| PrefRegistrySyncable::SYNCABLE_PREF);
|
| }
|
|
|
| -bool SpellcheckServiceFactory::ServiceRedirectedInIncognito() const {
|
| - return true;
|
| +content::BrowserContext* SpellcheckServiceFactory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return chrome::GetBrowserContextRedirectedInIncognito(context);
|
| }
|
|
|
| bool SpellcheckServiceFactory::ServiceIsNULLWhileTesting() const {
|
|
|