summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_file_job.cc
diff options
context:
space:
mode:
authorsreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 00:28:25 +0000
committersreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 00:28:25 +0000
commit25524c044d4aefd6902d4245b66980c46669e145 (patch)
treeb261266ab66c5f23a3513373fce1b5459fa935d0 /net/url_request/url_request_file_job.cc
parent80399470f9f4ded3e001f45029c1f87ae779b9fd (diff)
downloadchromium_src-25524c044d4aefd6902d4245b66980c46669e145.zip
chromium_src-25524c044d4aefd6902d4245b66980c46669e145.tar.gz
chromium_src-25524c044d4aefd6902d4245b66980c46669e145.tar.bz2
Disable prerendering if the pref is disabled at startup.
PrerenderManager always started out with enabled_ = true and relied on it being set to false via chrome/browser/net/net_pref_observer.cc line 30, if the "Predict network actions ..." pref was actually disabled. However, in incognito mode, there's no pref observer, so enabled_ remained true, causing the bug. This CL fixes it by directly checking the pref at PrerenderManager construction time. BUG=159393 R=dominich@chromium.org TEST=See bug. Review URL: https://chromiumcodereview.appspot.com/11368086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166090 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_file_job.cc')
0 files changed, 0 insertions, 0 deletions