| OLD | NEW |
| 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/net_pref_observer.h" | 5 #include "chrome/browser/net/net_pref_observer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/task.h" | |
| 9 #include "chrome/browser/net/predictor.h" | 8 #include "chrome/browser/net/predictor.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
| 11 #include "chrome/browser/prerender/prerender_manager.h" | 10 #include "chrome/browser/prerender/prerender_manager.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
| 14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
| 17 #include "net/http/http_stream_factory.h" | 16 #include "net/http/http_stream_factory.h" |
| 18 #include "net/url_request/url_request_throttler_manager.h" | 17 #include "net/url_request/url_request_throttler_manager.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 true, | 93 true, |
| 95 PrefService::UNSYNCABLE_PREF); | 94 PrefService::UNSYNCABLE_PREF); |
| 96 | 95 |
| 97 // For users who created their profile while throttling was off by | 96 // For users who created their profile while throttling was off by |
| 98 // default, but have never explicitly turned it on or off, we turn | 97 // default, but have never explicitly turned it on or off, we turn |
| 99 // it on which is the new default. | 98 // it on which is the new default. |
| 100 if (prefs->GetBoolean(prefs::kHttpThrottlingMayExperiment)) { | 99 if (prefs->GetBoolean(prefs::kHttpThrottlingMayExperiment)) { |
| 101 prefs->SetBoolean(prefs::kHttpThrottlingEnabled, true); | 100 prefs->SetBoolean(prefs::kHttpThrottlingEnabled, true); |
| 102 } | 101 } |
| 103 } | 102 } |
| OLD | NEW |