OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/net_pref_observer.h" | 5 #include "chrome/browser/net/net_pref_observer.h" |
6 | 6 |
7 #include "chrome/browser/browser_thread.h" | 7 #include "chrome/browser/browser_thread.h" |
8 #include "chrome/browser/net/predictor_api.h" | 8 #include "chrome/browser/net/predictor_api.h" |
9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
10 #include "chrome/common/notification_type.h" | 10 #include "chrome/common/notification_type.h" |
(...skipping 20 matching lines...) Expand all Loading... | |
31 } | 31 } |
32 | 32 |
33 void NetPrefObserver::ApplySettings() { | 33 void NetPrefObserver::ApplySettings() { |
34 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 34 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
35 chrome_browser_net::EnablePredictor(*dns_prefetching_enabled_); | 35 chrome_browser_net::EnablePredictor(*dns_prefetching_enabled_); |
36 net::HttpStreamFactory::set_spdy_enabled(!*spdy_disabled_); | 36 net::HttpStreamFactory::set_spdy_enabled(!*spdy_disabled_); |
37 } | 37 } |
38 | 38 |
39 // static | 39 // static |
40 void NetPrefObserver::RegisterPrefs(PrefService* prefs) { | 40 void NetPrefObserver::RegisterPrefs(PrefService* prefs) { |
41 prefs->RegisterBooleanPref(prefs::kDisableSpdy, false); | 41 prefs->RegisterBooleanPref(prefs::kDisableSpdy, true); |
vandebo (ex-Chrome)
2011/01/14 05:53:44
Is this a debugging change that shouldn't be in th
Satish
2011/01/14 18:09:29
Yes I will remove it. But I also wanted to ask how
| |
42 } | 42 } |
OLD | NEW |