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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/InterestsService.java

Issue 1459593002: Added a UI for the Interests Prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: 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..86edda907318358a9a624ef76783ffabcf021c6a 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;
/**
@@ -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);
}
/*

Powered by Google App Engine
This is Rietveld 408576698