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

Unified Diff: components/subresource_filter/core/browser/ruleset_service.cc

Issue 2279803002: Fix UnindexedRulesetWriter finishing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant test. Created 4 years, 4 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
« no previous file with comments | « no previous file | components/subresource_filter/core/common/unindexed_ruleset.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/subresource_filter/core/browser/ruleset_service.cc
diff --git a/components/subresource_filter/core/browser/ruleset_service.cc b/components/subresource_filter/core/browser/ruleset_service.cc
index 380afc8df007559b8a1d29c24f68dd6005f8e1c9..d5ebc4ee9e6287fd19062fea45ba0b6bb082f2d0 100644
--- a/components/subresource_filter/core/browser/ruleset_service.cc
+++ b/components/subresource_filter/core/browser/ruleset_service.cc
@@ -224,7 +224,7 @@ bool RulesetService::IndexRuleset(base::File unindexed_ruleset_file,
"SubresourceFilter.IndexRuleset.NumUnsupportedRules",
num_unsupported_rules);
- return zero_copy_stream_adaptor.ByteCount() == unindexed_ruleset_size;
+ return reader.num_bytes_read() == unindexed_ruleset_size;
}
// static
« no previous file with comments | « no previous file | components/subresource_filter/core/common/unindexed_ruleset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698