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

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: Address yosin@'s review Created 4 years, 2 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 a49e27296e665afd7f262e9aaaaed338d71832cd..19ea4d5abbabcc6f02fefb1ecbcc7d91524f7a4d 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -285,7 +285,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