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

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: Rebase + comments 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 9a9c3e56eff0a05c745c973836a707ef7428a77f..7865822e48a3e7c1da189542d0ee546684ea9506 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.cc
@@ -245,9 +245,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