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

Side by Side Diff: chrome/browser/net/net_pref_observer.cc

Issue 7283018: Introduce a policy to control the maximal number of connections per proxy server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved setting that policy to a really early point in the initialization of the system. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/task.h" 7 #include "base/task.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/browser/prerender/prerender_manager.h" 10 #include "chrome/browser/prerender/prerender_manager.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 true, 76 true,
77 PrefService::SYNCABLE_PREF); 77 PrefService::SYNCABLE_PREF);
78 prefs->RegisterBooleanPref(prefs::kDisableSpdy, 78 prefs->RegisterBooleanPref(prefs::kDisableSpdy,
79 false, 79 false,
80 PrefService::UNSYNCABLE_PREF); 80 PrefService::UNSYNCABLE_PREF);
81 prefs->RegisterBooleanPref(prefs::kHttpThrottlingEnabled, 81 prefs->RegisterBooleanPref(prefs::kHttpThrottlingEnabled,
82 false, 82 false,
83 PrefService::UNSYNCABLE_PREF); 83 PrefService::UNSYNCABLE_PREF);
84 prefs->RegisterBooleanPref(prefs::kHttpThrottlingMayExperiment, 84 prefs->RegisterBooleanPref(prefs::kHttpThrottlingMayExperiment,
85 true, 85 true,
86 PrefService::UNSYNCABLE_PREF); 86 PrefService::UNSYNCABLE_PREF);
pastarmovj 2011/07/08 10:49:39 Put back the new line here (reduce turbulence in c
87
88 // This is the earliest point at which we can set up the trial, as 87 // This is the earliest point at which we can set up the trial, as
89 // it relies on prefs for parameterization. 88 // it relies on prefs for parameterization.
90 CreateHttpThrottlingTrial(prefs); 89 CreateHttpThrottlingTrial(prefs);
91 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698