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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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: chrome/browser/plugins/plugin_info_message_filter.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index b0337f2fc7f4799072acb2d207cba6676e676e23..8e4a119b4ee2844486a4065905eeb633473acb35 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -129,8 +129,9 @@ void ReportMetrics(const std::string& mime_type,
if (!rappor_service)
return;
- if (base::StartsWithASCII(mime_type,
- content::kSilverlightPluginMimeTypePrefix, false)) {
+ if (base::StartsWith(mime_type,
+ content::kSilverlightPluginMimeTypePrefix,
+ base::CompareCase::INSENSITIVE_ASCII)) {
rappor_service->RecordSample(
"Plugins.SilverlightOriginUrl", rappor::ETLD_PLUS_ONE_RAPPOR_TYPE,
net::registry_controlled_domains::GetDomainAndRegistry(

Powered by Google App Engine
This is Rietveld 408576698