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

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: 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 398e0d9f6c5b440c1d2d097c1c3617c3b3d3baed..6dd2e93c88b706513d8dc17a81a38a38f89f11dc 100644
--- a/chrome/browser/android/ntp_snippets_bridge.h
+++ b/chrome/browser/android/ntp_snippets_bridge.h
@@ -15,11 +15,13 @@
// 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);
+ explicit NTPSnippetsBridge(JNIEnv* env, jobject j_profile);
Bernhard Bauer 2016/02/22 14:44:01 Explicit isn't necessary for multi-argument constr
Marc Treib 2016/02/22 17:22:49 Done.
void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ void SetObserver(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jobject j_observer);
+
static bool Register(JNIEnv* env);
private:

Powered by Google App Engine
This is Rietveld 408576698