diff options
author | ellyjones@chromium.org <ellyjones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-07 13:35:30 +0000 |
---|---|---|
committer | ellyjones@chromium.org <ellyjones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-07 13:35:30 +0000 |
commit | 52e3011a350034bbd1f39cfdc59b007eecff813d (patch) | |
tree | 5dfcec347a73d46a37c534ccc8769700c5376ae6 /chrome/renderer/net | |
parent | 74f0c36a21f4fc929759962e57981cbb0492171d (diff) | |
download | chromium_src-52e3011a350034bbd1f39cfdc59b007eecff813d.zip chromium_src-52e3011a350034bbd1f39cfdc59b007eecff813d.tar.gz chromium_src-52e3011a350034bbd1f39cfdc59b007eecff813d.tar.bz2 |
autoreload: don't set flags if disabled
Autoreload doesn't need to track state if it's disabled, and doing so causes
NetErrorHelperCore to upload bogus histogram values.
TEST=unit
BUG=359594
Review URL: https://codereview.chromium.org/224173005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/net')
-rw-r--r-- | chrome/renderer/net/net_error_helper_core.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/net/net_error_helper_core.cc b/chrome/renderer/net/net_error_helper_core.cc index d888a1a..517f4d5 100644 --- a/chrome/renderer/net/net_error_helper_core.cc +++ b/chrome/renderer/net/net_error_helper_core.cc @@ -346,7 +346,7 @@ void NetErrorHelperCore::OnStartLoad(FrameType frame_type, PageType page_type) { // or the new page is not an error page, then reset pending error page state. if (!pending_error_page_info_ || page_type != ERROR_PAGE) { CancelPendingFetches(); - } else { + } else if (auto_reload_enabled_) { // If an error load is starting, the resulting error page is autoreloadable. can_auto_reload_page_ = IsReloadableError(*pending_error_page_info_); } |