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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java

Issue 2553923002: Remove deprecated ReplicaInputConnection (Closed)
Patch Set: Created 4 years 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/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
index c240c7bcab2b8c141ced02d288d349f9cf9ac8cb..9b34ac91c4e39ef9cb1bfd349358421fb3da7bdd 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
+++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
@@ -158,21 +158,9 @@ public class ImeAdapter {
}
}
- private boolean isImeThreadEnabled() {
- if (mNativeImeAdapterAndroid == 0) return false;
- return nativeIsImeThreadEnabled(mNativeImeAdapterAndroid);
- }
-
private void createInputConnectionFactory() {
if (mInputConnectionFactory != null) return;
- if (isImeThreadEnabled()) {
- Log.i(TAG, "ImeThread is enabled.");
- mInputConnectionFactory =
- new ThreadedInputConnectionFactory(mInputMethodManagerWrapper);
- } else {
- Log.i(TAG, "ImeThread is not enabled.");
- mInputConnectionFactory = new ReplicaInputConnection.Factory();
- }
+ mInputConnectionFactory = new ThreadedInputConnectionFactory(mInputMethodManagerWrapper);
}
/**
@@ -801,5 +789,4 @@ public class ImeAdapter {
private native boolean nativeRequestTextInputStateUpdate(long nativeImeAdapterAndroid);
private native void nativeRequestCursorUpdate(long nativeImeAdapterAndroid,
boolean immediateRequest, boolean monitorRequest);
- private native boolean nativeIsImeThreadEnabled(long nativeImeAdapterAndroid);
}

Powered by Google App Engine
This is Rietveld 408576698