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

Unified Diff: chrome/browser/extensions/api/commands/command_service.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/api/commands/command_service.cc
diff --git a/chrome/browser/extensions/api/commands/command_service.cc b/chrome/browser/extensions/api/commands/command_service.cc
index 0f57c603125edcd8e5f822e25904dabd43083660..7636c93d2188b1096fd14dff98e2b630ceceebd9 100644
--- a/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chrome/browser/extensions/api/commands/command_service.cc
@@ -69,7 +69,8 @@ std::string GetPlatformKeybindingKeyForAccelerator(
}
bool IsForCurrentPlatform(const std::string& key) {
- return base::StartsWithASCII(key, Command::CommandPlatform() + ":", true);
+ return base::StartsWith(key, Command::CommandPlatform() + ":",
+ base::CompareCase::SENSITIVE);
}
std::string StripCurrentPlatform(const std::string& key) {

Powered by Google App Engine
This is Rietveld 408576698