Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/InterestsService.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/InterestsService.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/InterestsService.java |
index 23878bd3184cb70fdd2fcccbecfdbcc0af3fb3ee..54aded1340757e638df319aee458ad447606cd96 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/InterestsService.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/InterestsService.java |
@@ -11,6 +11,7 @@ import org.chromium.chrome.browser.profiles.Profile; |
* Retrieve the user's interests. |
*/ |
public class InterestsService { |
+ |
private long mNativeInterestsService; |
/** |
@@ -49,7 +50,7 @@ public class InterestsService { |
* @param interests The array of interests. Null if error. |
*/ |
@CalledByNative("GetInterestsCallback") |
- public void onInterestsAvailableCallback(Interest[] interests); |
+ public void onInterestsAvailable(Interest[] interests); |
} |
/** |
@@ -71,14 +72,7 @@ public class InterestsService { |
} |
public void getInterests(final GetInterestsCallback callback) { |
- GetInterestsCallback wrappedCallback = new GetInterestsCallback() { |
- @Override |
- public void onInterestsAvailableCallback(Interest[] interests) { |
- callback.onInterestsAvailableCallback(interests); |
- } |
- }; |
- |
- nativeGetInterests(mNativeInterestsService, wrappedCallback); |
+ nativeGetInterests(mNativeInterestsService, callback); |
} |
/* |