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

Unified Diff: content/browser/service_worker/service_worker_utils.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: content/browser/service_worker/service_worker_utils.cc
diff --git a/content/browser/service_worker/service_worker_utils.cc b/content/browser/service_worker/service_worker_utils.cc
index 59748ee3a83df3fdf75bb8310dfa923af4d4e831..7cfaccebe525727ed7c8a6250771514eb7d1dee4 100644
--- a/content/browser/service_worker/service_worker_utils.cc
+++ b/content/browser/service_worker/service_worker_utils.cc
@@ -36,7 +36,7 @@ bool PathContainsDisallowedCharacter(const GURL& url) {
bool ServiceWorkerUtils::ScopeMatches(const GURL& scope, const GURL& url) {
DCHECK(!scope.has_ref());
DCHECK(!url.has_ref());
- return StartsWithASCII(url.spec(), scope.spec(), true);
+ return base::StartsWithASCII(url.spec(), scope.spec(), true);
}
// static
@@ -69,7 +69,7 @@ bool ServiceWorkerUtils::IsPathRestrictionSatisfied(
}
std::string scope_string = scope.path();
- if (!StartsWithASCII(scope_string, max_scope_string, true)) {
+ if (!base::StartsWithASCII(scope_string, max_scope_string, true)) {
*error_message = "The path of the provided scope ('";
error_message->append(scope_string);
error_message->append("') is not under the max scope allowed (");
« no previous file with comments | « content/browser/service_worker/service_worker_database.cc ('k') | content/browser/session_history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698