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

Unified Diff: net/base/sdch_manager.cc

Issue 1291673003: SdchManager: remove EnableSdchSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 5 years, 4 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: net/base/sdch_manager.cc
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc
index e4104e0a96dadaced546d9e0880c3716df388837..447dee3179fa29f74085065499d694b8e81e628e 100644
--- a/net/base/sdch_manager.cc
+++ b/net/base/sdch_manager.cc
@@ -38,9 +38,6 @@ void StripTrailingDot(GURL* gurl) {
namespace net {
-// static
-bool SdchManager::g_sdch_enabled_ = true;
-
SdchManager::DictionarySet::DictionarySet() {}
SdchManager::DictionarySet::~DictionarySet() {}
@@ -103,11 +100,6 @@ void SdchManager::SdchErrorRecovery(SdchProblemCode problem) {
SDCH_MAX_PROBLEM_CODE);
}
-// static
-void SdchManager::EnableSdchSupport(bool enabled) {
- g_sdch_enabled_ = enabled;
-}
-
void SdchManager::BlacklistDomain(const GURL& url,
SdchProblemCode blacklist_reason) {
SetAllowLatencyExperiment(url, false);
@@ -167,9 +159,6 @@ int SdchManager::BlacklistDomainExponential(const std::string& domain) {
SdchProblemCode SdchManager::IsInSupportedDomain(const GURL& url) {
DCHECK(thread_checker_.CalledOnValidThread());
- if (!g_sdch_enabled_ )
- return SDCH_DISABLED;
-
if (blacklisted_domains_.empty())
return SDCH_OK;
@@ -456,7 +445,7 @@ void SdchManager::UrlSafeBase64Encode(const std::string& input,
scoped_ptr<base::Value> SdchManager::SdchInfoToValue() const {
scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
- value->SetBoolean("sdch_enabled", sdch_enabled());
+ value->SetBoolean("sdch_enabled", true);
scoped_ptr<base::ListValue> entry_list(new base::ListValue());
for (const auto& entry: dictionaries_) {

Powered by Google App Engine
This is Rietveld 408576698