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

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

Issue 2832153002: Ensure ime adapter gets connected to RWHVA (Closed)
Patch Set: comment Created 3 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
« no previous file with comments | « no previous file | content/browser/android/render_widget_host_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/ime_adapter_android.cc
diff --git a/content/browser/android/ime_adapter_android.cc b/content/browser/android/ime_adapter_android.cc
index 49d1f457d4e9c5a64b5258f0f091406e7451aa59..1a92e3c33bc0b92da648de4cbb6cde76a2511bee 100644
--- a/content/browser/android/ime_adapter_android.cc
+++ b/content/browser/android/ime_adapter_android.cc
@@ -70,8 +70,9 @@ jlong Init(JNIEnv* env,
const JavaParamRef<jobject>& jweb_contents) {
WebContents* web_contents = WebContents::FromJavaWebContents(jweb_contents);
DCHECK(web_contents);
- return reinterpret_cast<intptr_t>(
- new ImeAdapterAndroid(env, obj, web_contents));
+ auto* ime_adapter = new ImeAdapterAndroid(env, obj, web_contents);
+ ime_adapter->Initialize();
+ return reinterpret_cast<intptr_t>(ime_adapter);
}
// Callback from Java to convert BackgroundColorSpan data to a
« no previous file with comments | « no previous file | content/browser/android/render_widget_host_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698