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

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

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again; base::File changes conflicted. Created 7 years, 10 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 5d8ad6ae2da2b3c3a12fb45c80aa3fddcdb9cb67..be39398bf7d39edf9f766fa5ce3728cbed8b01db 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h"
#include "chrome/browser/net/chrome_url_request_context.h"
+#include "chrome/browser/prefs/pref_registry_syncable.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_io_data.h"
#include "chrome/common/chrome_notification_types.h"
@@ -732,13 +733,13 @@ void ProtocolHandlerRegistry::Shutdown() {
// static
void ProtocolHandlerRegistry::RegisterUserPrefs(
- PrefServiceSyncable* pref_service) {
- pref_service->RegisterListPref(prefs::kRegisteredProtocolHandlers,
- PrefServiceSyncable::UNSYNCABLE_PREF);
- pref_service->RegisterListPref(prefs::kIgnoredProtocolHandlers,
- PrefServiceSyncable::UNSYNCABLE_PREF);
- pref_service->RegisterBooleanPref(prefs::kCustomHandlersEnabled, true,
- PrefServiceSyncable::UNSYNCABLE_PREF);
+ PrefRegistrySyncable* registry) {
+ registry->RegisterListPref(prefs::kRegisteredProtocolHandlers,
+ PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterListPref(prefs::kIgnoredProtocolHandlers,
+ PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(prefs::kCustomHandlersEnabled, true,
+ PrefRegistrySyncable::UNSYNCABLE_PREF);
}
ProtocolHandlerRegistry::~ProtocolHandlerRegistry() {

Powered by Google App Engine
This is Rietveld 408576698