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

Unified Diff: components/proximity_auth/cryptauth/fake_secure_message_delegate.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger 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: components/proximity_auth/cryptauth/fake_secure_message_delegate.cc
diff --git a/components/proximity_auth/cryptauth/fake_secure_message_delegate.cc b/components/proximity_auth/cryptauth/fake_secure_message_delegate.cc
index 5fa5c5f42d5a1f71b27ed05505bd0463b883f29a..d05361c2d1ae50e65bbfcae06519a9974759d82b 100644
--- a/components/proximity_auth/cryptauth/fake_secure_message_delegate.cc
+++ b/components/proximity_auth/cryptauth/fake_secure_message_delegate.cc
@@ -76,7 +76,7 @@ bool Verify(const std::string& signature,
signing_key = key;
} else {
std::string prefix = kPrivateKeyPrefix;
- bool is_private_key = StartsWithASCII(key, prefix, true);
+ bool is_private_key = base::StartsWithASCII(key, prefix, true);
signing_key = is_private_key ? key.substr(prefix.size()) : prefix + key;
}
@@ -113,7 +113,7 @@ void FakeSecureMessageDelegate::DeriveKey(const std::string& private_key,
// private key so it is equal to its corresponding public key.
std::string prefix(kPrivateKeyPrefix);
std::string normalized_private_key =
- StartsWithASCII(private_key, prefix, true)
+ base::StartsWithASCII(private_key, prefix, true)
? private_key.substr(prefix.size())
: private_key;
« no previous file with comments | « components/policy/core/common/preg_parser_win.cc ('k') | components/search_engines/template_url_service_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698