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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 9836043: Remove http_throttling.may_experiment pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
index 326d5df51b374ed799832ba60fa8d84b9adcf0c0..1787dd84a65e6a290341a01c150cb3747a59a023 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -251,11 +251,6 @@ class NetInternalsMessageHandler
// be accessed on the UI thread.
BooleanPrefMember http_throttling_enabled_;
- // The pref member that determines whether experimentation on HTTP throttling
- // is allowed (this becomes false once the user explicitly sets the
- // feature to on or off).
- BooleanPrefMember http_throttling_may_experiment_;
-
// This is the "real" message handler, which lives on the IO thread.
scoped_refptr<IOThreadImpl> proxy_;
@@ -429,8 +424,6 @@ void NetInternalsMessageHandler::RegisterMessages() {
PrefService* pref_service = profile->GetPrefs();
http_throttling_enabled_.Init(
prefs::kHttpThrottlingEnabled, pref_service, this);
- http_throttling_may_experiment_.Init(
- prefs::kHttpThrottlingMayExperiment, pref_service, NULL);
proxy_ = new IOThreadImpl(this->AsWeakPtr(), g_browser_process->io_thread(),
profile->GetRequestContext());
@@ -615,14 +608,6 @@ void NetInternalsMessageHandler::OnEnableHttpThrottling(const ListValue* list) {
}
http_throttling_enabled_.SetValue(enable);
-
- // We never receive OnEnableHttpThrottling unless the user has modified
- // the value of the checkbox on the about:net-internals page. Once the
- // user does that, we no longer change its value automatically (e.g.
- // by changing the default or running an experiment).
- if (http_throttling_may_experiment_.GetValue()) {
- http_throttling_may_experiment_.SetValue(false);
- }
}
void NetInternalsMessageHandler::OnClearBrowserCache(const ListValue* list) {
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698