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

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

Issue 1457803002: Register data_reduction_proxy prefs on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@io-thread-testing-fixed-http-port
Patch Set: Created 5 years, 1 month 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 | 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 ec6d7a90d63a0c4d4c45a349209d36d1308ec72b..146e362303415e152943b3406ed5eaf2a759ef77 100644
--- a/ios/chrome/browser/prefs/browser_prefs.mm
+++ b/ios/chrome/browser/prefs/browser_prefs.mm
@@ -7,6 +7,8 @@
#include "base/prefs/pref_service.h"
#include "components/autofill/core/browser/autofill_manager.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
+#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/dom_distiller/core/distilled_page_prefs.h"
#include "components/enhanced_bookmarks/bookmark_server_cluster_service.h"
#include "components/gcm_driver/gcm_channel_status_syncer.h"
@@ -74,6 +76,13 @@ void RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
[OmniboxGeolocationLocalState registerLocalState:registry];
[MemoryDebuggerManager registerLocalState:registry];
+ // TODO(crbug.com/557814): data_reduction_proxy::prefs::kDataReductionProxy
+ // should be registered by data_reduction_proxy::RegisterPrefs() instead of
+ // here.
+ registry->RegisterStringPref(data_reduction_proxy::prefs::kDataReductionProxy,
+ std::string());
+ data_reduction_proxy::RegisterPrefs(registry);
+
// TODO(shreyasv): Remove this in M49 as almost all users would have the
// "do not backup" bit set by then. crbug.com/489865.
registry->RegisterBooleanPref(prefs::kOTRStashStatePathSystemBackupExcluded,
« no previous file with comments | « no previous file | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698