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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 9 years, 8 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/custom_handlers/protocol_handler_registry.cc
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.cc b/chrome/browser/custom_handlers/protocol_handler_registry.cc
index e913cca4cee7959203bd6224f2ba225dcb38b4d5..97e8953759e71b047c3512bc58f0cf041e35b153 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.cc
@@ -260,9 +260,12 @@ void ProtocolHandlerRegistry::OnIgnoreRegisterProtocolHandler(
}
void ProtocolHandlerRegistry::RegisterPrefs(PrefService* prefService) {
- prefService->RegisterListPref(prefs::kRegisteredProtocolHandlers);
- prefService->RegisterListPref(prefs::kIgnoredProtocolHandlers);
- prefService->RegisterBooleanPref(prefs::kCustomHandlersEnabled, true);
+ prefService->RegisterListPref(prefs::kRegisteredProtocolHandlers,
+ false /* don't sync pref */);
+ prefService->RegisterListPref(prefs::kIgnoredProtocolHandlers,
+ false /* don't sync pref */);
+ prefService->RegisterBooleanPref(prefs::kCustomHandlersEnabled, true,
+ false /* don't sync pref */);
}
// Delegate --------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698