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

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

Issue 2805503002: Ensure initial focus is set properly when creating a ContentViewCore (Closed)
Patch Set: Address comments 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 | « content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0a554c964b3d43f39cdd6f107e7ace6e7e5b7b6c..9633bc318fdf12a36aafc4ce2c03258474f92027 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
@@ -89,7 +89,9 @@ public class PopupZoomerTest extends ContentShellTestBase {
public void run() {
mPopupZoomer = createPopupZoomerForTest(getInstrumentation().getTargetContext());
mContentViewCore = new ContentViewCore(context, "");
- ImeAdapter imeAdapter = new ImeAdapter(getContentViewCore().getWebContents(),
+ ImeAdapter imeAdapter = new ImeAdapter(
+ getContentViewCore().getContainerView().getResources().getConfiguration(),
+ getContentViewCore().getWebContents(),
new TestInputMethodManagerWrapper(mContentViewCore),
new TestImeAdapterDelegate(getContentViewCore().getContainerView()));
mContentViewCore.setSelectionPopupControllerForTesting(new SelectionPopupController(
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698