Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 1263423006: Rename spellchecker preprocessor flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
index 69145f17e250ea76db6b9b011a367bc1f6a7ebf9..9a538d42aa772204fca679f0bd8d9b4b8eab0b3c 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) {
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h ('k') | chrome/browser/spellchecker/spellcheck_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698