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

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

Issue 2349073002: Blimp Settings framework on the c++ side (Closed)
Patch Set: Move the Android-only profile prefs to chrome/browser/android/preferences/browser_android_prefs.h Created 4 years, 2 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 | « chrome/browser/android/preferences/browser_android_prefs.cc ('k') | no next file » | 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 d6e69ac3bc6e43c59a55a39c77a4b196f799db6b..821379bae91b99989098231c97697f87b2a2f9a1 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -157,8 +157,7 @@
#endif
#if defined(OS_ANDROID)
-#include "chrome/browser/notifications/notification_platform_bridge_android.h"
-#include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h"
+#include "chrome/browser/android/preferences/browser_android_prefs.h"
#else
#include "chrome/browser/services/gcm/gcm_product_util.h"
#include "chrome/browser/signin/signin_promo.h"
@@ -574,10 +573,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
signin::RegisterProfilePrefs(registry);
#endif
-#if defined(OS_ANDROID)
- NotificationPlatformBridgeAndroid::RegisterProfilePrefs(registry);
- ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry);
-#else
+#if !defined(OS_ANDROID)
browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry);
gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry);
gcm::RegisterProfilePrefs(registry);
@@ -677,6 +673,10 @@ void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
#if defined(OS_CHROMEOS)
chromeos::PowerPrefs::RegisterUserProfilePrefs(registry);
#endif
+
+#if defined(OS_ANDROID)
+ ::android::RegisterUserProfilePrefs(registry);
Lei Zhang 2016/10/04 01:19:10 Shouldn't this be RegisterProfilePrefs() and shoul
Menglin 2016/10/04 01:21:46 Oh thought doing something similar to the chromeos
Lei Zhang 2016/10/04 01:33:56 Ah, ok.
+#endif
}
void RegisterScreenshotPrefs(PrefRegistrySimple* registry) {
« no previous file with comments | « chrome/browser/android/preferences/browser_android_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698