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

Unified Diff: components/policy/core/common/cloud/external_policy_data_fetcher.cc

Issue 2378173002: Precache per-resource cap should be applied on network bytes used (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/external_policy_data_fetcher.cc
diff --git a/components/policy/core/common/cloud/external_policy_data_fetcher.cc b/components/policy/core/common/cloud/external_policy_data_fetcher.cc
index d3474e2826ce20d5c1cd2d17b4bebe5893edd710..1d92c1e8f4cfac6bdfcafec4418888348fa171b7 100644
--- a/components/policy/core/common/cloud/external_policy_data_fetcher.cc
+++ b/components/policy/core/common/cloud/external_policy_data_fetcher.cc
@@ -251,7 +251,8 @@ void ExternalPolicyDataFetcherBackend::OnURLFetchComplete(
void ExternalPolicyDataFetcherBackend::OnURLFetchDownloadProgress(
const net::URLFetcher* source,
int64_t current,
- int64_t total) {
+ int64_t total,
+ int64_t current_network_bytes) {
DCHECK(io_task_runner_->RunsTasksOnCurrentThread());
JobMap::iterator it = job_map_.find(const_cast<net::URLFetcher*>(source));
DCHECK(it != job_map_.end());

Powered by Google App Engine
This is Rietveld 408576698