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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 5 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h" 8 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h"
9 #include "chrome/browser/net/chrome_url_request_context.h" 9 #include "chrome/browser/net/chrome_url_request_context.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 ProtocolHandler* handler) { 120 ProtocolHandler* handler) {
121 RegisterProtocolHandler(handler); 121 RegisterProtocolHandler(handler);
122 Save(); 122 Save();
123 } 123 }
124 124
125 void ProtocolHandlerRegistry::OnDenyRegisterProtocolHandler( 125 void ProtocolHandlerRegistry::OnDenyRegisterProtocolHandler(
126 ProtocolHandler* handler) { 126 ProtocolHandler* handler) {
127 } 127 }
128 128
129 void ProtocolHandlerRegistry::RegisterPrefs(PrefService* prefService) { 129 void ProtocolHandlerRegistry::RegisterPrefs(PrefService* prefService) {
130 prefService->RegisterListPref(prefs::kRegisteredProtocolHandlers); 130 prefService->RegisterListPref(prefs::kRegisteredProtocolHandlers,
131 false /* don't sync pref */);
131 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698