summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/spellchecker/spellcheck_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/spellchecker/spellcheck_factory.cc')
-rw-r--r--chromium/chrome/browser/spellchecker/spellcheck_factory.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/chrome/browser/spellchecker/spellcheck_factory.cc b/chromium/chrome/browser/spellchecker/spellcheck_factory.cc
index 64b5243d510..5e3abf577da 100644
--- a/chromium/chrome/browser/spellchecker/spellcheck_factory.cc
+++ b/chromium/chrome/browser/spellchecker/spellcheck_factory.cc
@@ -4,9 +4,13 @@
#include "chrome/browser/spellchecker/spellcheck_factory.h"
+#ifndef TOOLKIT_QT
#include "chrome/browser/profiles/incognito_helpers.h"
+#endif
#include "chrome/browser/spellchecker/spellcheck_service.h"
+#ifndef TOOLKIT_QT
#include "chrome/grit/locale_settings.h"
+#endif
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
@@ -73,9 +77,11 @@ void SpellcheckServiceFactory::RegisterProfilePrefs(
std::make_unique<base::ListValue>());
// Continue registering kSpellCheckDictionary for preference migration.
// TODO(estade): remove: crbug.com/751275
+#ifndef TOOLKIT_QT
user_prefs->RegisterStringPref(
spellcheck::prefs::kSpellCheckDictionary,
l10n_util::GetStringUTF8(IDS_SPELLCHECK_DICTIONARY));
+#endif
user_prefs->RegisterBooleanPref(
spellcheck::prefs::kSpellCheckUseSpellingService, false);
#if defined(OS_ANDROID)
@@ -89,7 +95,11 @@ void SpellcheckServiceFactory::RegisterProfilePrefs(
content::BrowserContext* SpellcheckServiceFactory::GetBrowserContextToUse(
content::BrowserContext* context) const {
+#ifndef TOOLKIT_QT
return chrome::GetBrowserContextRedirectedInIncognito(context);
+#else
+ return context;
+#endif
}
bool SpellcheckServiceFactory::ServiceIsNULLWhileTesting() const {