Implement chrome.inputMethodPrivate.setAutocorrectRange

This sends the Data to the TextInputClient, which is responsible for handling rendering.

Bug: 1091088
Change-Id: I0c8669ff3d3b632e4fbc9eeeb3691f7929e069a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2230404
Commit-Queue: Keith Lee <[email protected]>
Reviewed-by: Devlin <[email protected]>
Reviewed-by: Darren Shen <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Cr-Commit-Position: refs/heads/master@{#779733}
diff --git a/components/exo/text_input.cc b/components/exo/text_input.cc
index d004a1f..370a77ee9 100644
--- a/components/exo/text_input.cc
+++ b/components/exo/text_input.cc
@@ -324,6 +324,13 @@
   return false;
 }
 
+// TODO(crbug.com/1091088) Implement setAutocorrectRange
+bool TextInput::SetAutocorrectRange(const base::string16& autocorrect_text,
+                                    const gfx::Range& range) {
+  NOTIMPLEMENTED_LOG_ONCE();
+  return false;
+}
+
 void TextInput::OnKeyboardVisibilityChanged(bool is_visible) {
   delegate_->OnVirtualKeyboardVisibilityChanged(is_visible);
 }