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

Unified Diff: base/strings/string_util.cc

Issue 1098843004: Omnibox - Do Not Allow HTTP/HTTPS Equivalence if User Explicitly Entered A Scheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot string implementation 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
« no previous file with comments | « base/strings/string_util.h ('k') | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string_util.cc
diff --git a/base/strings/string_util.cc b/base/strings/string_util.cc
index 6f6d6e2b6bd240997c822374adf3126108881d9e..eadbc654a9f5a93bbb6cf15a83b93394d92c28ae 100644
--- a/base/strings/string_util.cc
+++ b/base/strings/string_util.cc
@@ -493,6 +493,11 @@ bool StartsWithT(const STR& str, const STR& search, bool case_sensitive) {
}
}
+bool StartsWith(const std::string& str, const std::string& search,
+ bool case_sensitive) {
+ return StartsWithT(str, search, case_sensitive);
+}
+
bool StartsWith(const string16& str, const string16& search,
bool case_sensitive) {
return StartsWithT(str, search, case_sensitive);
« no previous file with comments | « base/strings/string_util.h ('k') | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698