Commit 8ba9e7e0 authored by Ben Kelly's avatar Ben Kelly Committed by Commit Bot

CacheStorage: Pass LegacyCacheStorageCacheMatch() priority argument.

This was an oversight in crrev.com/c/1884932 and effectively made the
CacheStorageHighPriorityMatch feature have no effect.

Bug: 1018920
Change-Id: Ib962f254c9204cdcde1c817cf7ecfa13360ac2e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904125
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713676}
parent 8ae7d6cd
...@@ -534,10 +534,9 @@ void LegacyCacheStorageCache::Match( ...@@ -534,10 +534,9 @@ void LegacyCacheStorageCache::Match(
} }
auto id = scheduler_->CreateId(); auto id = scheduler_->CreateId();
// TODO: use priority
scheduler_->ScheduleOperation( scheduler_->ScheduleOperation(
id, CacheStorageSchedulerMode::kShared, CacheStorageSchedulerOp::kMatch, id, CacheStorageSchedulerMode::kShared, CacheStorageSchedulerOp::kMatch,
CacheStorageSchedulerPriority::kNormal, priority,
base::BindOnce( base::BindOnce(
&LegacyCacheStorageCache::MatchImpl, weak_ptr_factory_.GetWeakPtr(), &LegacyCacheStorageCache::MatchImpl, weak_ptr_factory_.GetWeakPtr(),
std::move(request), std::move(match_options), trace_id, std::move(request), std::move(match_options), trace_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment