Index: components/translate/core/browser/language_model.h |
diff --git a/components/translate/core/browser/language_model.h b/components/translate/core/browser/language_model.h |
index e8c4200713622a2059e9e4b2155434b8c9037b8d..c06caac1144344e68315ede6da72965f5bfe0a17 100644 |
--- a/components/translate/core/browser/language_model.h |
+++ b/components/translate/core/browser/language_model.h |
@@ -30,7 +30,7 @@ class LanguageModel : public KeyedService { |
// The current estimated frequency of the language share, a number between 0 |
// and 1 (can be understood as the probability that the next page the user |
// opens is in this language). Frequencies over all LanguageInfos from |
- // GetTopLanguages() sum to 1. |
+ // GetTopLanguages() sum to 1 (unless there are no top languages, yet). |
float frequency; |
bool operator==(const LanguageInfo& m) const { |
@@ -45,7 +45,8 @@ class LanguageModel : public KeyedService { |
static void RegisterProfilePrefs(PrefRegistrySimple* registry); |
// Returns a list of the languages currently tracked by the model, sorted by |
- // frequency in decreasing order. |
+ // frequency in decreasing order. The list is empty, if the model has not |
+ // enough data points. |
std::vector<LanguageInfo> GetTopLanguages() const; |
// Returns the estimated frequency for the given language or 0 if the language |