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

Unified 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: Re: #12. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/net_pref_observer.cc
diff --git a/chrome/browser/net/net_pref_observer.cc b/chrome/browser/net/net_pref_observer.cc
deleted file mode 100644
index 45dec561aaf7d92f786c6685651d2310dc88170b..0000000000000000000000000000000000000000
--- a/chrome/browser/net/net_pref_observer.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/net/net_pref_observer.h"
-
-#include "base/bind.h"
-#include "base/logging.h"
-#include "chrome/common/pref_names.h"
-#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
-#include "content/public/browser/browser_thread.h"
-#include "net/http/http_stream_factory.h"
-
-using content::BrowserThread;
-
-NetPrefObserver::NetPrefObserver(PrefService* prefs) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
- DCHECK(prefs);
-}
-
-NetPrefObserver::~NetPrefObserver() {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
-}
-
-// static
-void NetPrefObserver::RegisterProfilePrefs(
- user_prefs::PrefRegistrySyncable* registry) {
- registry->RegisterBooleanPref(
- prefs::kNetworkPredictionEnabled,
- true,
- user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
- registry->RegisterBooleanPref(prefs::kDisableSpdy, false);
-}

Powered by Google App Engine
This is Rietveld 408576698