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

Unified Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 1677073002: Fetch snippets from ChromeReader and show them on the NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments 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/chrome_jni_registrar.cc
diff --git a/chrome/browser/android/chrome_jni_registrar.cc b/chrome/browser/android/chrome_jni_registrar.cc
index b1cefd2d30d10e005bffcd1ed21a4a517f184554..49900ed1972426f58f0cc03da55ca8a94afda2f8 100644
--- a/chrome/browser/android/chrome_jni_registrar.cc
+++ b/chrome/browser/android/chrome_jni_registrar.cc
@@ -60,6 +60,8 @@
#include "chrome/browser/android/most_visited_sites.h"
#include "chrome/browser/android/net/external_estimate_provider_android.h"
#include "chrome/browser/android/new_tab_page_prefs.h"
+#include "chrome/browser/android/ntp_snippets_bridge.h"
+#include "chrome/browser/android/ntp_snippets_controller.h"
#include "chrome/browser/android/offline_pages/offline_page_bridge.h"
#include "chrome/browser/android/omnibox/answers_image_bridge.h"
#include "chrome/browser/android/omnibox/autocomplete_controller_android.h"
@@ -302,6 +304,8 @@ static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
{"NewTabPagePrefs", NewTabPagePrefs::RegisterNewTabPagePrefs},
{"NotificationUIManager",
NotificationUIManagerAndroid::RegisterNotificationUIManager},
+ {"NTPSnippetsBridge", NTPSnippetsBridge::Register},
+ {"NTPSnippetsController", NTPSnippetsController::Register},
{"OAuth2TokenServiceDelegateAndroid",
OAuth2TokenServiceDelegateAndroid::Register},
{"OfflinePageBridge", offline_pages::android::RegisterOfflinePageBridge},

Powered by Google App Engine
This is Rietveld 408576698