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

Unified Diff: chrome/test/chromedriver/chrome/performance_logger.cc

Issue 14591005: C++ readability review from original change https://chromiumcodereview.appspot.com/14263024/ (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Fix types in CHECK comparisons. Created 7 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/chrome/performance_logger.cc
diff --git a/chrome/test/chromedriver/chrome/performance_logger.cc b/chrome/test/chromedriver/chrome/performance_logger.cc
index d2d5d12e100f2ea78cf67db809cb5f84b7f2569f..77ab25c290fffb7ed20bc1116638f38416fec67d 100644
--- a/chrome/test/chromedriver/chrome/performance_logger.cc
+++ b/chrome/test/chromedriver/chrome/performance_logger.cc
@@ -14,16 +14,16 @@
namespace {
// DevTools event domain prefixes to intercept.
-const char* kDomains[] = {"Network.", "Page.", "Timeline."};
+const char* const kDomains[] = {"Network.", "Page.", "Timeline."};
-const char* kDomainEnableCommands[] = {
+const char* const kDomainEnableCommands[] = {
"Network.enable", "Page.enable", "Timeline.start"
};
// 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 (StartsWithASCII(method, kDomains[i_domain], true))
+ if (StartsWithASCII(method, kDomains[i_domain], true /* case_sensitive */))
return true;
}
return false;
« no previous file with comments | « chrome/test/chromedriver/chrome/performance_logger.h ('k') | chrome/test/chromedriver/chrome/performance_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698