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

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

Issue 2321453002: c/browser, c/common, components S-W: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased 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/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 aac26db10a5e97ac41e6c4b929012e93eca98914..c35c51f43de566808d4ea04c98b0819655089fc3 100644
--- a/components/subresource_filter/core/browser/ruleset_service.cc
+++ b/components/subresource_filter/core/browser/ruleset_service.cc
@@ -317,7 +317,7 @@ RulesetService::IndexAndWriteRulesetResult RulesetService::WriteRuleset(
static_assert(sizeof(uint8_t) == sizeof(char), "Expected char = byte.");
const int data_size_in_chars = base::checked_cast<int>(indexed_ruleset_size);
- if (base::WriteFile(GetRulesetDataFilePath(scratch_dir.path()),
+ if (base::WriteFile(GetRulesetDataFilePath(scratch_dir.GetPath()),
reinterpret_cast<const char*>(indexed_ruleset_data),
data_size_in_chars) != data_size_in_chars) {
return IndexAndWriteRulesetResult::FAILED_WRITING_RULESET_DATA;
@@ -325,7 +325,7 @@ RulesetService::IndexAndWriteRulesetResult RulesetService::WriteRuleset(
if (base::PathExists(license_source_path) &&
!base::CopyFile(license_source_path,
- GetLicenseFilePath(scratch_dir.path()))) {
+ GetLicenseFilePath(scratch_dir.GetPath()))) {
return IndexAndWriteRulesetResult::FAILED_WRITING_LICENSE;
}
@@ -343,8 +343,8 @@ RulesetService::IndexAndWriteRulesetResult RulesetService::WriteRuleset(
}
base::File::Error error;
- if (!(*g_replace_file_func)(scratch_dir.path(), indexed_ruleset_version_dir,
- &error)) {
+ if (!(*g_replace_file_func)(scratch_dir.GetPath(),
+ indexed_ruleset_version_dir, &error)) {
// While enumerators of base::File::Error all have negative values, the
// histogram records the absolute values.
UMA_HISTOGRAM_ENUMERATION("SubresourceFilter.WriteRuleset.ReplaceFileError",

Powered by Google App Engine
This is Rietveld 408576698