summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
diff options
context:
space:
mode:
authordylanking <dylanking@google.com>2015-08-04 12:56:32 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-04 19:58:45 +0000
commit990eb97f091d9719b2061de67b7e585f6a967d8b (patch)
treecbc49525c04a86f26cdce332e36155eb9ac49d0e /chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
parent796afe619bb0cecbe4538d748f75fe83b824d871 (diff)
downloadchromium_src-990eb97f091d9719b2061de67b7e585f6a967d8b.zip
chromium_src-990eb97f091d9719b2061de67b7e585f6a967d8b.tar.gz
chromium_src-990eb97f091d9719b2061de67b7e585f6a967d8b.tar.bz2
Rename spellchecker preprocessor flag
Renamed USE_PLATFORM_SPELLCHECKER preprocessor flag to USE_BROWSER_SPELLCHECKER to more accurately reflect the fact that the browser side contains other services such as red underlines that will be leveraged by any spellchecker. BUG=415302 Review URL: https://codereview.chromium.org/1263423006 Cr-Commit-Position: refs/heads/master@{#341771}
Diffstat (limited to 'chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc')
-rw-r--r--chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
index 69145f1..9a538d4 100644
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -97,7 +97,7 @@ SpellcheckHunspellDictionary::SpellcheckHunspellDictionary(
net::URLRequestContextGetter* request_context_getter,
SpellcheckService* spellcheck_service)
: language_(language),
- use_platform_spellchecker_(false),
+ use_browser_spellchecker_(false),
request_context_getter_(request_context_getter),
spellcheck_service_(spellcheck_service),
download_status_(DOWNLOAD_NONE),
@@ -110,10 +110,10 @@ SpellcheckHunspellDictionary::~SpellcheckHunspellDictionary() {
void SpellcheckHunspellDictionary::Load() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
-#if defined(USE_PLATFORM_SPELLCHECKER)
+#if defined(USE_BROWSER_SPELLCHECKER)
if (spellcheck_platform::SpellCheckerAvailable() &&
spellcheck_platform::PlatformSupportsLanguage(language_)) {
- use_platform_spellchecker_ = true;
+ use_browser_spellchecker_ = true;
spellcheck_platform::SetLanguage(language_);
base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(
@@ -121,7 +121,7 @@ void SpellcheckHunspellDictionary::Load() {
weak_ptr_factory_.GetWeakPtr()));
return;
}
-#endif // USE_PLATFORM_SPELLCHECKER
+#endif // USE_BROWSER_SPELLCHECKER
// Mac falls back on hunspell if its platform spellchecker isn't available.
// However, Android does not support hunspell.
@@ -156,7 +156,7 @@ const std::string& SpellcheckHunspellDictionary::GetLanguage() const {
}
bool SpellcheckHunspellDictionary::IsUsingPlatformChecker() const {
- return use_platform_spellchecker_;
+ return use_browser_spellchecker_;
}
void SpellcheckHunspellDictionary::AddObserver(Observer* observer) {