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

Unified Diff: dart_library_provider_network.cc

Issue 2006303002: base::StartsWithASCII() -> base::StartsWith(). (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/tonic@master
Patch Set: Created 4 years, 7 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 | « dart_library_provider_files.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart_library_provider_network.cc
diff --git a/dart_library_provider_network.cc b/dart_library_provider_network.cc
index 635d07ea5f43fe2bc084caf0d7ffa39fe21c0a5c..8697a4b37ee2b50f2fbf014c52e5a426e385fbf2 100644
--- a/dart_library_provider_network.cc
+++ b/dart_library_provider_network.cc
@@ -81,10 +81,10 @@ void DartLibraryProviderNetwork::GetLibraryAsStream(
Dart_Handle DartLibraryProviderNetwork::CanonicalizeURL(Dart_Handle library,
Dart_Handle url) {
std::string string = StdStringFromDart(url);
- if (base::StartsWithASCII(string, "dart:", true))
+ if (base::StartsWith(string, "dart:", base::CompareCase::SENSITIVE))
return url;
// TODO(abarth): The package root should be configurable.
- if (base::StartsWithASCII(string, "package:", true))
+ if (base::StartsWith(string, "package:", base::CompareCase::SENSITIVE))
base::ReplaceFirstSubstringAfterOffset(&string, 0, "package:",
"/packages/");
GURL library_url(StdStringFromDart(Dart_LibraryUrl(library)));
« no previous file with comments | « dart_library_provider_files.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698