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

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

Issue 2537073002: Fix leaks in InputConnectionHandlerThread (Closed)
Patch Set: Created 4 years, 1 month 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/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java
diff --git a/content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java b/content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java
index 8793a05500f1634d57a5c7e0582f4621b8475d1d..08f50673e994a1d377b39a0fef6391956439b0ff 100644
--- a/content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java
+++ b/content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java
@@ -134,6 +134,8 @@ public class ThreadedInputConnectionFactoryTest {
mInputMethodManager = Mockito.mock(InputMethodManager.class);
mFactory = new TestFactory(new InputMethodManagerWrapper(mContext));
+ // Needed to access handler's looper even before we initialize handler.
+ mFactory.createHandler();
mFactory.onWindowFocusChanged(true);
when(mContext.getSystemService(Context.INPUT_METHOD_SERVICE))

Powered by Google App Engine
This is Rietveld 408576698