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

Unified Diff: extensions/common/permissions/permissions_info.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 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
« no previous file with comments | « extensions/common/extension.cc ('k') | extensions/shell/common/shell_content_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/permissions/permissions_info.cc
diff --git a/extensions/common/permissions/permissions_info.cc b/extensions/common/permissions/permissions_info.cc
index ad64fd5cb01edad4d9d5053305faa4cf47797d88..e83fb2e3a78bc70de0b391bdbe274e30984562e0 100644
--- a/extensions/common/permissions/permissions_info.cc
+++ b/extensions/common/permissions/permissions_info.cc
@@ -64,7 +64,7 @@ APIPermissionSet PermissionsInfo::GetAllByName(
bool PermissionsInfo::HasChildPermissions(const std::string& name) const {
NameMap::const_iterator i = name_map_.lower_bound(name + '.');
if (i == name_map_.end()) return false;
- return base::StartsWithASCII(i->first, name + '.', true);
+ return base::StartsWith(i->first, name + '.', base::CompareCase::SENSITIVE);
}
PermissionsInfo::PermissionsInfo()
« no previous file with comments | « extensions/common/extension.cc ('k') | extensions/shell/common/shell_content_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698