Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.java |
| index fc8f4edd98adb5d2831b3d3bb9fb66ad893e93c1..6e9e3443abfcefa5abdffb9a70acb1a10b1baacf 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.java |
| @@ -4,6 +4,8 @@ |
| package org.chromium.chrome.browser.autofill; |
| +import android.content.Context; |
| + |
| import org.chromium.base.CalledByNative; |
| import org.chromium.base.JNINamespace; |
| import org.chromium.ui.ViewAndroid; |
| @@ -24,7 +26,9 @@ public class AutofillPopupGlue implements AutofillPopupDelegate{ |
| public AutofillPopupGlue(int nativeAutofillPopupViewAndroid, WindowAndroid windowAndroid, |
| ViewAndroidDelegate containerViewDelegate) { |
| mNativeAutofillPopup = nativeAutofillPopupViewAndroid; |
| - mAutofillPopup = new AutofillPopup(windowAndroid.getContext(), containerViewDelegate, this); |
| + Context context = windowAndroid.getContext(); |
| + assert context != null; |
| + mAutofillPopup = new AutofillPopup(context, containerViewDelegate, this); |
|
joth
2013/11/01 18:45:01
Is the edit in this file really needed? You're goi
michaelbai
2013/11/01 21:27:05
I am planing to remove this deprecated method comp
|
| } |
| @CalledByNative |