Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / android / javatests / src / org / chromium / chrome / browser / autofill / AutofillTest.java
index 008955f..8bb4072 100644 (file)
@@ -44,7 +44,7 @@ public class AutofillTest extends ChromeShellTestBase {
         mMockAutofillCallback = new MockAutofillCallback();
         mWindowAndroid = new ActivityWindowAndroid(activity);
         final ViewAndroidDelegate viewDelegate =
-                activity.getActiveContentView().getContentViewCore().getViewAndroidDelegate();
+                activity.getActiveContentViewCore().getViewAndroidDelegate();
 
         UiUtils.runOnUiThread(getActivity(), new Runnable() {
             @Override
@@ -108,7 +108,7 @@ public class AutofillTest extends ChromeShellTestBase {
         UiUtils.runOnUiThread(getActivity(), new Runnable() {
             @Override
             public void run() {
-                mAutofillPopup.show(suggestions);
+                mAutofillPopup.filterAndShow(suggestions);
             }
         });
         return CriteriaHelper.pollForCriteria(new Criteria() {