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

Unified Diff: chrome/browser/android/ntp_snippets_bridge.h

Issue 1723493002: [NTP Snippets] Fetch/load snippets on startup, and pass them on NTP creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcmtaskservice
Patch Set: rebase Created 4 years, 10 months 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/browser/android/ntp_snippets_bridge.h
diff --git a/chrome/browser/android/ntp_snippets_bridge.h b/chrome/browser/android/ntp_snippets_bridge.h
index 727cd27428c0b3da0a07a161f571ae268dbd7568..97ed187ba8bb12da7a1765e25afe633b183bed4b 100644
--- a/chrome/browser/android/ntp_snippets_bridge.h
+++ b/chrome/browser/android/ntp_snippets_bridge.h
@@ -15,11 +15,14 @@
// the list of snippets to show on the NTP
class NTPSnippetsBridge : public ntp_snippets::NTPSnippetsServiceObserver {
public:
- explicit NTPSnippetsBridge(JNIEnv* env,
- jobject j_profile,
- jobject j_observer);
+ NTPSnippetsBridge(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& j_profile);
void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ void SetObserver(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ const base::android::JavaParamRef<jobject>& j_observer);
+
static bool Register(JNIEnv* env);
private:

Powered by Google App Engine
This is Rietveld 408576698