Index: chrome/renderer/spellchecker/spellcheck.h |
diff --git a/chrome/renderer/spellchecker/spellcheck.h b/chrome/renderer/spellchecker/spellcheck.h |
index 078e202c68df39bcfd4e61a32611ab556e814f6e..b972e173a5bd2b4f0feca0c600f830d4bc6107c0 100644 |
--- a/chrome/renderer/spellchecker/spellcheck.h |
+++ b/chrome/renderer/spellchecker/spellcheck.h |
@@ -121,6 +121,14 @@ class SpellCheck : public content::RenderProcessObserver, |
FRIEND_TEST_ALL_PREFIXES(SpellCheckTest, |
RequestSpellCheckMultipleTimesWithoutInitialization); |
+ // Evenly fill |optional_suggestions| with a maximum of |kMaxSuggestions| |
+ // suggestions from |suggestions_list|. suggestions_list[i][j] is the j-th |
+ // suggestion from the i-th language's suggestions. |optional_suggestions| |
+ // cannot be null. |
+ static void FillSuggestions( |
+ const std::vector<std::vector<base::string16>>& suggestions_list, |
+ std::vector<base::string16>* optional_suggestions); |
+ |
// RenderProcessObserver implementation: |
bool OnControlMessageReceived(const IPC::Message& message) override; |