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

Unified Diff: chrome/browser/prefs/browser_prefs.cc

Issue 10882024: Add webui handler for promotions on Android NTP. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removing images (added separately in https://chromiumcodereview.appspot.com/10905035/) Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/ntp_android/new_tab.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 1e2a82484ceba19288be28bd5470e1970ccd2cb6..f750e51b449aad00c32a856a9c58c68ebed8604b 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -111,6 +111,10 @@
#include "chrome/browser/chrome_to_mobile_service.h"
#endif
+#if defined(OS_ANDROID)
+#include "chrome/browser/ui/webui/ntp/android/promo_handler.h"
+#endif
+
namespace {
enum MigratedPreferences {
@@ -234,6 +238,10 @@ void RegisterUserPrefs(PrefService* user_prefs) {
geolocation::RegisterUserPrefs(user_prefs);
#endif
+#if defined(OS_ANDROID)
+ PromoHandler::RegisterUserPrefs(user_prefs);
+#endif
+
#if defined(USE_ASH)
ash::RegisterChromeLauncherUserPrefs(user_prefs);
#endif
« no previous file with comments | « no previous file | chrome/browser/resources/ntp_android/new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698