firewalld: Update libchrome APIs to r369476
The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.
Change-Id: Ib36ec8f828bfafcdaa57399cc1be12b00161b7ed
diff --git a/iptables.cc b/iptables.cc
index e356ca9..4a8a3b8 100644
--- a/iptables.cc
+++ b/iptables.cc
@@ -57,10 +57,10 @@
if (iface.length() >= kInterfaceNameSize) {
return false;
}
- if (base::StartsWithASCII(iface, "-", true /* case_sensitive */) ||
- base::EndsWith(iface, "-", true /* case_sensitive */) ||
- base::StartsWithASCII(iface, ".", true /* case_sensitive */) ||
- base::EndsWith(iface, ".", true /* case_sensitive */)) {
+ if (base::StartsWith(iface, "-", base::CompareCase::SENSITIVE) ||
+ base::EndsWith(iface, "-", base::CompareCase::SENSITIVE) ||
+ base::StartsWith(iface, ".", base::CompareCase::SENSITIVE) ||
+ base::EndsWith(iface, ".", base::CompareCase::SENSITIVE)) {
return false;
}
for (auto c : iface) {