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

Unified Diff: chrome/test/chromedriver/performance_logger.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/test/chromedriver/performance_logger.cc
diff --git a/chrome/test/chromedriver/performance_logger.cc b/chrome/test/chromedriver/performance_logger.cc
index 2dceef9b10c12e4a3790ef57a2f9e75bbdd52ae0..37e66f40f280358a2aa49fabfc044d18fa134b43 100644
--- a/chrome/test/chromedriver/performance_logger.cc
+++ b/chrome/test/chromedriver/performance_logger.cc
@@ -52,8 +52,8 @@ bool ShouldRequestTraceEvents(const std::string& command) {
// Returns whether the event belongs to one of kDomains.
bool ShouldLogEvent(const std::string& method) {
for (size_t i_domain = 0; i_domain < arraysize(kDomains); ++i_domain) {
- if (base::StartsWithASCII(method, kDomains[i_domain],
- true /* case_sensitive */))
+ if (base::StartsWith(method, kDomains[i_domain],
+ base::CompareCase::SENSITIVE))
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698