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

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: change for changwan@'s review Created 4 years, 5 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 92b3346747006bb3ccefa7a4477b55df70496d7a..5ca62191a1f47d37c7adfb8f37eb500e6823c69b 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -315,7 +315,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