Update url_request_http_job.cc

This commit is contained in:
Alexander David Frick 2022-02-25 07:15:41 -06:00 committed by GitHub
parent 2db61bc1e9
commit 43e9beef9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@
#include "base/check_op.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/containers/adapters.h"
#include "base/file_version_info.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
@ -1338,9 +1339,8 @@ std::unique_ptr<SourceStream> URLRequestHttpJob::SetUpSourceStream() {
}
}
for (auto r_iter = types.rbegin(); r_iter != types.rend(); ++r_iter) {
for (const auto& type : base::Reversed(types)) {
std::unique_ptr<FilterSourceStream> downstream;
SourceStream::SourceType type = *r_iter;
switch (type) {
case SourceStream::TYPE_BROTLI:
downstream = CreateBrotliSourceStream(std::move(upstream));