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

Unified Diff: chrome/browser/extensions/activity_log/activity_log.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/extensions/activity_log/activity_log.cc
diff --git a/chrome/browser/extensions/activity_log/activity_log.cc b/chrome/browser/extensions/activity_log/activity_log.cc
index 6a8263c7910e2f73213fe567cc03cde5c3ad59a0..d160b7ec7f090f44813188cac0bb393f428accdc 100644
--- a/chrome/browser/extensions/activity_log/activity_log.cc
+++ b/chrome/browser/extensions/activity_log/activity_log.cc
@@ -521,7 +521,8 @@ void ActivityLog::LogAction(scoped_refptr<Action> action) {
// Mark DOM XHR requests as such, for easier processing later.
if (action->action_type() == Action::ACTION_DOM_ACCESS &&
- base::StartsWithASCII(action->api_name(), kDomXhrPrefix, true) &&
+ base::StartsWith(action->api_name(), kDomXhrPrefix,
+ base::CompareCase::SENSITIVE) &&
action->other()) {
base::DictionaryValue* other = action->mutable_other();
int dom_verb = -1;

Powered by Google App Engine
This is Rietveld 408576698