summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_database.cc')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database.cc26
1 files changed, 9 insertions, 17 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc
index 5a7929e..09e4643 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database.cc
@@ -1792,8 +1792,7 @@ void SafeBrowsingDatabaseNew::RecordFileSizeHistogram(
// Default to logging DB sizes unless |file_path| points at PrefixSet storage.
std::string histogram_name("SB2.DatabaseSizeKilobytes");
- if (base::EndsWith(filename, kPrefixSetFileSuffix,
- base::CompareCase::SENSITIVE)) {
+ if (base::EndsWith(filename, kPrefixSetFileSuffix, true)) {
histogram_name = "SB2.PrefixSetSizeKilobytes";
// Clear the PrefixSet suffix to have the histogram suffix selector below
// work the same for PrefixSet-based storage as it does for simple safe
@@ -1806,28 +1805,21 @@ void SafeBrowsingDatabaseNew::RecordFileSizeHistogram(
// Changes to histogram suffixes below need to be mirrored in the
// SafeBrowsingLists suffix enum in histograms.xml.
- if (base::EndsWith(filename, kBrowseDBFile, base::CompareCase::SENSITIVE))
+ if (base::EndsWith(filename, kBrowseDBFile, true))
histogram_name.append(".Browse");
- else if (base::EndsWith(filename, kDownloadDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kDownloadDBFile, true))
histogram_name.append(".Download");
- else if (base::EndsWith(filename, kCsdWhitelistDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kCsdWhitelistDBFile, true))
histogram_name.append(".CsdWhitelist");
- else if (base::EndsWith(filename, kDownloadWhitelistDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kDownloadWhitelistDBFile, true))
histogram_name.append(".DownloadWhitelist");
- else if (base::EndsWith(filename, kInclusionWhitelistDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kInclusionWhitelistDBFile, true))
histogram_name.append(".InclusionWhitelist");
- else if (base::EndsWith(filename, kExtensionBlacklistDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kExtensionBlacklistDBFile, true))
histogram_name.append(".ExtensionBlacklist");
- else if (base::EndsWith(filename, kIPBlacklistDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kIPBlacklistDBFile, true))
histogram_name.append(".IPBlacklist");
- else if (base::EndsWith(filename, kUnwantedSoftwareDBFile,
- base::CompareCase::SENSITIVE))
+ else if (base::EndsWith(filename, kUnwantedSoftwareDBFile, true))
histogram_name.append(".UnwantedSoftware");
else
NOTREACHED(); // Add support for new lists above.