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

Unified Diff: content/browser/renderer_host/ime_adapter_android.cc

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deal with multi-code-text, and add more tests. Created 4 years, 8 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: content/browser/renderer_host/ime_adapter_android.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index f41ebefe1cea3797505f2f0a3b3c1ac8d0031872..b11a8df6649e649af92289578b01e10e7a9bdf3e 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -316,7 +316,7 @@ void ImeAdapterAndroid::DeleteSurroundingText(JNIEnv*,
RenderFrameHostImpl* rfh =
static_cast<RenderFrameHostImpl*>(GetFocusedFrame());
if (rfh)
- rfh->ExtendSelectionAndDelete(before, after);
+ rfh->DeleteSurroundingText(before, after);
}
bool ImeAdapterAndroid::RequestTextInputStateUpdate(

Powered by Google App Engine
This is Rietveld 408576698