summaryrefslogtreecommitdiffstats
path: root/chrome/browser/custom_handlers/protocol_handler_registry.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-10 13:14:04 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-10 13:14:04 +0000
commitc753f148dc1a10cd9461e50e03dc2a93652c13d1 (patch)
tree9e1a8558556a0f31d4e527c4c203d076f8cca920 /chrome/browser/custom_handlers/protocol_handler_registry.cc
parente6dbde892ddea9e179fa76e4db1333e83776d160 (diff)
downloadchromium_src-c753f148dc1a10cd9461e50e03dc2a93652c13d1.zip
chromium_src-c753f148dc1a10cd9461e50e03dc2a93652c13d1.tar.gz
chromium_src-c753f148dc1a10cd9461e50e03dc2a93652c13d1.tar.bz2
Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable.
Minimize usage of PrefServiceSyncable. It is mostly an implementation detail of ProfileImpl and the sync integration. TBR=ben@chromium.org BUG=155525 Review URL: https://codereview.chromium.org/12079097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_handlers/protocol_handler_registry.cc')
-rw-r--r--chrome/browser/custom_handlers/protocol_handler_registry.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.cc b/chrome/browser/custom_handlers/protocol_handler_registry.cc
index 5d8ad6a..be39398 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() {