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

Unified Diff: ios/chrome/browser/prefs/browser_prefs.mm

Issue 2184163002: Register delete time period pref for CBD on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make pref syncable Created 4 years, 5 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 | « ios/chrome/browser/DEPS ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/prefs/browser_prefs.mm
diff --git a/ios/chrome/browser/prefs/browser_prefs.mm b/ios/chrome/browser/prefs/browser_prefs.mm
index cbace1d0c1c44e71c5cbfdf0f67a59ef95280e75..f7dbbe7129509941a33b5704a4e9ad7e5c51af3c 100644
--- a/ios/chrome/browser/prefs/browser_prefs.mm
+++ b/ios/chrome/browser/prefs/browser_prefs.mm
@@ -5,6 +5,7 @@
#include "ios/chrome/browser/prefs/browser_prefs.h"
#include "components/autofill/core/browser/autofill_manager.h"
+#include "components/browsing_data/core/pref_names.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/dom_distiller/core/distilled_page_prefs.h"
#include "components/flags_ui/pref_service_flags_storage.h"
@@ -138,6 +139,9 @@ void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) {
// Register prefs used by Clear Browsing Data UI.
registry->RegisterIntegerPref(
prefs::kClearBrowsingDataHistoryNoticeShownTimes, 0);
+ registry->RegisterIntegerPref(
+ browsing_data::prefs::kDeleteTimePeriod, 0,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
ios::GetChromeBrowserProvider()->RegisterProfilePrefs(registry);
}
« no previous file with comments | « ios/chrome/browser/DEPS ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698