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

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

Issue 2172543003: Remove NetPrefObserver class and two prefs that do not do anything. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error on ChromeOS. Created 4 years, 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/net/net_pref_observer.h"
6
7 #include "base/bind.h"
8 #include "base/logging.h"
9 #include "chrome/common/pref_names.h"
10 #include "components/pref_registry/pref_registry_syncable.h"
11 #include "components/prefs/pref_service.h"
12 #include "content/public/browser/browser_thread.h"
13 #include "net/http/http_stream_factory.h"
14
15 using content::BrowserThread;
16
17 NetPrefObserver::NetPrefObserver(PrefService* prefs) {
18 DCHECK_CURRENTLY_ON(BrowserThread::UI);
19 DCHECK(prefs);
20 }
21
22 NetPrefObserver::~NetPrefObserver() {
23 DCHECK_CURRENTLY_ON(BrowserThread::UI);
24 }
25
26 // static
27 void NetPrefObserver::RegisterProfilePrefs(
28 user_prefs::PrefRegistrySyncable* registry) {
29 registry->RegisterBooleanPref(
30 prefs::kNetworkPredictionEnabled,
31 true,
32 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
33 registry->RegisterBooleanPref(prefs::kDisableSpdy, false);
gab 2016/07/21 21:26:43 Move the definition of kDisableSpdy to browser_pre
Bence 2016/07/22 15:37:13 Done.
34 }
OLDNEW
« no previous file with comments | « chrome/browser/net/net_pref_observer.h ('k') | chrome/browser/policy/cloud/cloud_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698