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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java

Issue 2752113005: Let ImeAdapterAndroid have the same lifecycle as its Java peer (Closed)
Patch Set: comments Created 3 years, 9 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/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
index ae53c847293e0d35ae3d7bb650375720b1a156a2..96a4100bcde0569052d78cef428bee0a2d60fbb5 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java
@@ -80,11 +80,11 @@ public class PopupZoomerTest extends ContentShellTestBase {
super.setUp();
mPopupZoomer = createPopupZoomerForTest(getInstrumentation().getTargetContext());
mContentViewCore = new ContentViewCore(getActivity(), "");
- ImeAdapter imeAdapter = new ImeAdapter(new TestInputMethodManagerWrapper(mContentViewCore),
+ ImeAdapter imeAdapter = new ImeAdapter(mContentViewCore.getWebContents(),
+ new TestInputMethodManagerWrapper(mContentViewCore),
new TestImeAdapterDelegate(getContentViewCore().getContainerView()));
- mContentViewCore.setSelectionPopupControllerForTesting(
- new SelectionPopupController(getActivity(), null, null, null,
- mContentViewCore.getRenderCoordinates(), imeAdapter));
+ mContentViewCore.setSelectionPopupControllerForTesting(new SelectionPopupController(
+ getActivity(), null, null, null, mContentViewCore.getRenderCoordinates()));
mContentViewCore.setPopupZoomerForTest(mPopupZoomer);
mContentViewCore.setImeAdapterForTest(imeAdapter);
}

Powered by Google App Engine
This is Rietveld 408576698