Index: chrome/browser/safe_browsing/safe_browsing_database.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc |
index 5a7929e17c12765db3631e4faa7efb8bfb5dc909..09e4643276e8896b51d8c0ff4a0450dff3a7ffb2 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_database.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_database.cc |
@@ -1792,8 +1792,7 @@ |
// 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 @@ |
// 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. |