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

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

Issue 7583003: [Refactoring] Extracted SpellCheckProfile from ProfileImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: To commit Created 9 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_host_impl.cc
diff --git a/chrome/browser/spellchecker/spellcheck_host_impl.cc b/chrome/browser/spellchecker/spellcheck_host_impl.cc
index 9170f0a34a17667b46a2c9c09a32d2a4ac529f4d..fc8fd609a0cd2efb2858cca904aecfe9b2cc885e 100644
--- a/chrome/browser/spellchecker/spellcheck_host_impl.cc
+++ b/chrome/browser/spellchecker/spellcheck_host_impl.cc
@@ -392,6 +392,11 @@ SpellCheckHostMetrics* SpellCheckHostImpl::GetMetrics() const {
return metrics_;
}
+bool SpellCheckHostImpl::IsReady() const {
+ return GetDictionaryFile() != base::kInvalidPlatformFileValue ||
+ IsUsingPlatformChecker();
+}
+
const base::PlatformFile& SpellCheckHostImpl::GetDictionaryFile() const {
return file_;
}
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_host_impl.h ('k') | chrome/browser/spellchecker/spellcheck_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698