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

Unified Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « chrome/app/delay_load_hook_win.cc ('k') | chrome/browser/autocomplete/builtin_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/preferences/website_preference_bridge.cc
diff --git a/chrome/browser/android/preferences/website_preference_bridge.cc b/chrome/browser/android/preferences/website_preference_bridge.cc
index 9d575d7e7f9f19ed74eaa9619da3c123befacd3b..e262e84c4c530f9b8c97fc061090f138d93f6e51 100644
--- a/chrome/browser/android/preferences/website_preference_bridge.cc
+++ b/chrome/browser/android/preferences/website_preference_bridge.cc
@@ -75,11 +75,11 @@ static void GetOrigins(JNIEnv* env,
const char* kHttpsPortSuffix = ":443";
ScopedJavaLocalRef<jstring> jorigin;
if (base::StartsWithASCII(origin, url::kHttpsScheme, false) &&
- EndsWith(origin, kHttpsPortSuffix, false)) {
+ base::EndsWith(origin, kHttpsPortSuffix, false)) {
jorigin = ConvertUTF8ToJavaString(
env, origin.substr(0, origin.size() - strlen(kHttpsPortSuffix)));
} else if (base::StartsWithASCII(origin, url::kHttpScheme, false) &&
- EndsWith(origin, kHttpPortSuffix, false)) {
+ base::EndsWith(origin, kHttpPortSuffix, false)) {
jorigin = ConvertUTF8ToJavaString(
env, origin.substr(0, origin.size() - strlen(kHttpPortSuffix)));
} else {
« no previous file with comments | « chrome/app/delay_load_hook_win.cc ('k') | chrome/browser/autocomplete/builtin_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698