| Index: chrome/browser/spellchecker/spellcheck_service.h
|
| diff --git a/chrome/browser/spellchecker/spellcheck_service.h b/chrome/browser/spellchecker/spellcheck_service.h
|
| index a0b22f8bb40844896c7df633aa1ac82ff8fb950e..989b2554565bfef29158d227dc315230d04e4d21 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_service.h
|
| +++ b/chrome/browser/spellchecker/spellcheck_service.h
|
| @@ -60,14 +60,14 @@ class SpellcheckService : public KeyedService,
|
| // returns the index of the current spell check language in the vector.
|
| // TODO(port): this should take a vector of base::string16, but the
|
| // implementation has some dependencies in l10n util that need porting first.
|
| - static int GetSpellCheckLanguages(content::BrowserContext* context,
|
| - std::vector<std::string>* languages);
|
| + static std::set<int> GetSpellCheckLanguages(
|
| + content::BrowserContext* context,
|
| + std::vector<std::string>* languages);
|
|
|
| // Computes a vector of strings which are to be displayed in the context
|
| // menu from |accept_languages| and |dictionary_language|.
|
| static void GetSpellCheckLanguagesFromAcceptLanguages(
|
| const std::vector<std::string>& accept_languages,
|
| - const std::string& dictionary_language,
|
| std::vector<std::string>* languages);
|
|
|
| // Signals the event attached by AttachTestEvent() to report the specified
|
| @@ -127,6 +127,10 @@ class SpellcheckService : public KeyedService,
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(SpellcheckServiceBrowserTest, DeleteCorruptedBDICT);
|
|
|
| + static std::vector<std::string> GetAcceptLanguages(PrefService* prefs);
|
| + static std::vector<std::string> GetSpellCheckDictionaryLanguages(
|
| + PrefService* prefs);
|
| +
|
| // Attaches an event so browser tests can listen the status events.
|
| static void AttachStatusEvent(base::WaitableEvent* status_event);
|
|
|
|
|