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

Side by Side Diff: chrome/browser/net/pref_proxy_config_service.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 9 years, 7 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/net/pref_proxy_config_service.h" 5 #include "chrome/browser/net/pref_proxy_config_service.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/prefs/pref_service.h" 8 #include "chrome/browser/prefs/pref_service.h"
9 #include "chrome/browser/prefs/pref_set_observer.h" 9 #include "chrome/browser/prefs/pref_set_observer.h"
10 #include "chrome/browser/prefs/proxy_config_dictionary.h" 10 #include "chrome/browser/prefs/proxy_config_dictionary.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 if (!registered_observers_) { 259 if (!registered_observers_) {
260 base_service_->AddObserver(this); 260 base_service_->AddObserver(this);
261 pref_config_tracker_->AddObserver(this); 261 pref_config_tracker_->AddObserver(this);
262 registered_observers_ = true; 262 registered_observers_ = true;
263 } 263 }
264 } 264 }
265 265
266 // static 266 // static
267 void PrefProxyConfigService::RegisterPrefs(PrefService* pref_service) { 267 void PrefProxyConfigService::RegisterPrefs(PrefService* pref_service) {
268 DictionaryValue* default_settings = ProxyConfigDictionary::CreateSystem(); 268 DictionaryValue* default_settings = ProxyConfigDictionary::CreateSystem();
269 pref_service->RegisterDictionaryPref(prefs::kProxy, default_settings); 269 pref_service->RegisterDictionaryPref(prefs::kProxy,
270 default_settings,
271 false /* don't sync pref */);
270 } 272 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698